User:BrandonXLF/SVGEditor
From Wikipedia, the free encyclopedia
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.
DescriptionAdds 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.
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.
AuthorUser:BrandonXLF
StatusWorking
First releasedApril 20, 2022
| 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 | User:BrandonXLF |
| Status | Working |
| First released | April 20, 2022 |
| Source | SVGEditor.js (git) |
| GitHub repository | wikipedia-user-scripts |
Installation
importScript('User:BrandonXLF/SVGEditor.js'); // {{#parsoid- Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript'); // {{#parsoid- 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.wikipedia.org/w/index.php?title=User:BrandonXLF/SVGEditor.js&action=raw&ctype=text/javascript');- After installing reload the page and clear your cache
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.