Add demo.js

This commit is contained in:
2025-10-28 13:46:57 +00:00
commit e7d74a7a7a

24
demo.js Normal file
View 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!');
})();