24 lines
731 B
JavaScript
24 lines
731 B
JavaScript
// ==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!');
|
|
})(); |