User:Þjarkur/Highlight recently added text
Appearance
Status | Works |
---|---|
Source | User:Þjarkur/Highlight recently added text.js |
This script adds a faint green background to any text that has been recently added, or added since you last visited a page.
How it works
[edit]- This script stores a list in your browser of when you last saw a page. If you have visited a page before on your current browser (with this script installed), it will highlight text that has been added since then.
- If you have not visited an article before on your current browser (with this script installed), it will highlight what has been added in the last 10 edits (ignoring reverted edits).
- Reload the page to remove the highlights.
Default settings
[edit]window.highlightRecentlyAddedTextSettings = {
color: 'rgba(108, 255, 18, 0.09)', // Faint green
useInMainspace: true,
}
Installation
[edit]Add this to your common.js file: importScript('User:Þjarkur/Highlight recently added text.js');
[Source] – Builds upon Cacycle's diff code and SD0001's hide-reverted-edits.