Created
December 30, 2020 15:17
-
-
Save crra/c594f2cdce484fef5712d0c1dd5dd4fc to your computer and use it in GitHub Desktop.
[greasemonkey, bookmarklet] links from mydealz.de if defined in the link title without redirect over their affiliate service
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 Mydealz title links | |
// @version 1 | |
// @grant none | |
// @include https://www.mydealz.de/* | |
// ==/UserScript== | |
"use strict"; | |
(() => { | |
const all_links = document.querySelectorAll(".userHtml a[title^='http']"); | |
for (const link of all_links) { | |
link.setAttribute("href", link.getAttribute("title")); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment