View text source at Wikipedia
Description | Adds a invert link Invert inverts the colour of the page. It adds a link to the toolbar that will allow you to invert the page colour and the colour of images. The script saves CSS by editing your custom CSS file. The script also allows you to modify a temporary configuration for the page you're viewing or the saved configuration, which is saved to you CSS file (counts as a edit). This script should work with all skins, please report any issues. |
---|---|
Author(s) | User:BrandonXLF |
Status | Working |
First released | September 23, 2018 |
Browsers |
|
Skins | All |
Source | Invert.js (git) |
GitHub repository | wikipedia-user-scripts |
Invert inverts the colour of the page. It adds a link to the toolbar that will allow you to invert the page colour and the colour of images. The script saves CSS by editing your custom CSS file. The script also allows you to modify a temporary configuration for the page you're viewing or the saved configuration, which is saved to you CSS file (counts as a edit). This script should work with all skins, please report any issues.
importScript('User:BrandonXLF/Invert.js'); // [[User:BrandonXLF/Invert.js]]
mw.loader.load('/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/Invert.js]]
mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript');
To also invert images, hover over the "Invert" link and check the option to invert images.
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.