User:BrandonXLF/Invert
Appearance
(Redirected from User:BrandonXLF/invert)
![]() | |
![]() Invert script being used | |
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 |
Browser support |
|
Skin support | 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.
Installation
importScript('User:BrandonXLF/Invert.js'); // [[User:BrandonXLF/Invert.js]]
- Alternatively, use the following instead of the above:
mw.loader.load('/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript'); // [[User:BrandonXLF/Invert.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.wikipedia.org/w/index.php?title=User:BrandonXLF/Invert.js&action=raw&ctype=text/javascript');
- After installing reload the page and clear your cache
Invert images
![](http://upload.wikimedia.org/wikipedia/en/thumb/e/e9/Invert_script.png/300px-Invert_script.png)
To also invert images, hover over the "Invert" link and check the option to invert images.
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.