Created
January 17, 2022 10:16
-
-
Save leifnel/2b40dc6f889373eb9bf374425b0bc312 to your computer and use it in GitHub Desktop.
Add URL to clickbaity titles on newssites using dre-item__title
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 NoClickBait | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description Add visible URL to Clickbait headings | |
// @author Leif Neland | |
// @match https://ekstrabladet.dk/* | |
// @match https://www.bt.dk/* | |
// match https://*.dk/* | |
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var articles=document.getElementsByClassName("dre-item__title"); | |
for(var i=0;i<articles.length;i++) {articles[i].append(articles[i].href)} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment