Add demo.js
This commit is contained in:
24
demo.js
Normal file
24
demo.js
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
// ==UserScript==
|
||||||
|
// @name Link Highlighter
|
||||||
|
// @namespace https://github.com/yourusername/
|
||||||
|
// @version 1.0.0
|
||||||
|
// @description Highlights all links on the page
|
||||||
|
// @author Darren
|
||||||
|
// @match *://*/*
|
||||||
|
// @updateURL https://git.upto.im/geekery/scripts/raw/branch/main/meta.js
|
||||||
|
// @downloadURL https://git.upto.im/geekery/scripts/raw/branch/main/demo.js
|
||||||
|
// @grant none
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
|
// Add yellow background to all links
|
||||||
|
const links = document.querySelectorAll('a');
|
||||||
|
links.forEach(link => {
|
||||||
|
link.style.backgroundColor = '#ffff00';
|
||||||
|
link.style.padding = '2px';
|
||||||
|
});
|
||||||
|
|
||||||
|
console.log('Link Highlighter v1.0.0 loaded!');
|
||||||
|
})();
|
||||||
Reference in New Issue
Block a user