From e7d74a7a7aa7ca80d5be5b3fbbc5edb4af0d6e76 Mon Sep 17 00:00:00 2001 From: darren Date: Tue, 28 Oct 2025 13:46:57 +0000 Subject: [PATCH] Add demo.js --- demo.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 demo.js diff --git a/demo.js b/demo.js new file mode 100644 index 0000000..012cd96 --- /dev/null +++ b/demo.js @@ -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!'); +})(); \ No newline at end of file