Skip to content

Instantly share code, notes, and snippets.

@leifnel
Created January 17, 2022 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leifnel/2b40dc6f889373eb9bf374425b0bc312 to your computer and use it in GitHub Desktop.
Save leifnel/2b40dc6f889373eb9bf374425b0bc312 to your computer and use it in GitHub Desktop.
Add URL to clickbaity titles on newssites using dre-item__title
// ==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