Update demo.js
This commit is contained in:
6
demo.js
6
demo.js
@@ -1,7 +1,7 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name Link Highlighter
|
// @name Link Highlighter
|
||||||
// @namespace https://github.com/yourusername/
|
// @namespace https://github.com/yourusername/
|
||||||
// @version 1.0.0
|
// @version 1.0.1
|
||||||
// @description Highlights all links on the page
|
// @description Highlights all links on the page
|
||||||
// @author TheMonitor
|
// @author TheMonitor
|
||||||
// @match *://*/*
|
// @match *://*/*
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
// Add yellow background to all links
|
// Add yellow background to all links
|
||||||
const links = document.querySelectorAll('a');
|
const links = document.querySelectorAll('a');
|
||||||
links.forEach(link => {
|
links.forEach(link => {
|
||||||
link.style.backgroundColor = '#ffff00';
|
link.style.backgroundColor = '#90EE90';
|
||||||
link.style.padding = '2px';
|
link.style.padding = '2px';
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('Link Highlighter v1.0.0 loaded!');
|
console.log('Link Highlighter v1.0.1 loaded!');
|
||||||
})();
|
})();
|
||||||
Reference in New Issue
Block a user