Last active
August 29, 2015 14:06
-
-
Save mschmitt/cebf0ee4e56a746cb856 to your computer and use it in GitHub Desktop.
Kommentare auf Newsseiten ausblenden (UserScript für Greasemonkey)
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 Kommentare auf Newsseiten ausblenden | |
// @namespace https://gist.github.com/mschmitt/cebf0ee4e56a746cb856/raw/KommentareAufNewsseitenAusblenden.user.js | |
// @description Kommentare auf Newsseiten ausblenden | |
// @include /^https?:\/\/(www\.|)spiegel\.de\/.*/ | |
// @include /^https?:\/\/(www\.|)tagesschau\.de\/.*/ | |
// @include /^https?:\/\/(www\.|)heise\.de\/.*/ | |
// @version 1 | |
// @grant GM_addStyle | |
// ==/UserScript== | |
// | |
// ///////////////////////////////////////// | |
// Dies ist ein UserScript für Greasemonkey: | |
// | |
// http://www.greasespot.net/ | |
// ///////////////////////////////////////// | |
if (window.location.host.match(/spiegel\.de/)){ | |
GM_addStyle("div.article-comments-box { display: none; }"); | |
} | |
else if (window.location.host.match(/tagesschau\.de/)){ | |
GM_addStyle("h2.conHeadline { display: none; }"); | |
GM_addStyle("div.modConComments { display: none; }"); | |
} | |
else if (window.location.host.match(/heise\.de/)){ | |
GM_addStyle("div.link_forum_beitrag { display: none; }"); | |
GM_addStyle("p.themen_foren { display: none; }"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment