Description | Adds a button to view and edit SVG source code SVG Editor adds a button to SVG files pages that allows you to view the source code of the SVG file and edit the source code without leaving the page. Supports editing files hosted on the Commons. |
---|---|
Author(s) | User:BrandonXLF |
Status | Working |
First released | April 20, 2022 |
Source | SVGEditor.js (git) |
GitHub repository | wikipedia-user-scripts |
SVG Editor adds a button to SVG files pages that allows you to view the source code of the SVG file and edit the source code without leaving the page. Supports editing files hosted on the Commons.
Installation
importScript('User:BrandonXLF/SVGEditor.js'); // [[User:BrandonXLF/SVGEditor.js]]
- Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/SVGEditor.js]]
- To install on other wikis (for instance, globally in your global.js on the Meta-Wiki), use the following code:
mw.loader.load('https://en.wiki.x.io/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript');
- After installing reload the page and clear your cache
Comments/Bugs
Comments are welcome on my talk page, be sure to indicate that you're talking about this script in the title. I would really like any suggestion to make the script run better.