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.
importScript('User:BrandonXLF/SVGEditor.js'); // [[User:BrandonXLF/SVGEditor.js]]
mw.loader.load('/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/SVGEditor.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript');
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.