Created
December 18, 2025 08:55
-
-
Save rtldg/54ae6757243f56bbdb6614fd3ab4f964 to your computer and use it in GitHub Desktop.
The Dles userscript to make things middle-click-able
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name The Dles links | |
| // @namespace http://tampermonkey.net/ | |
| // @version 2025-12-18 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match https://dles.aukspot.com/ | |
| // @icon https://icons.duckduckgo.com/ip2/aukspot.com.ico | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| fetch("https://raw.githubusercontent.com/aukspot/dles/refs/heads/main/src/lib/data/dles.json") | |
| .then(response => response.json()) | |
| .then((json) => { | |
| const gamemap = {}; | |
| for (const game of json) { | |
| gamemap[game.name] = game.url; | |
| } | |
| const elements = [...document.querySelectorAll(".dle-name-container")]; | |
| for (const elem of elements) { | |
| const shitspan = elem.children[0]; | |
| const gamename = shitspan.innerText; | |
| const url = gamemap[gamename]; | |
| shitspan.insertAdjacentHTML("afterend", `<a href="${url}">${gamename}</a>`); | |
| shitspan.remove(); | |
| } | |
| }); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment