Skip to content

Instantly share code, notes, and snippets.

@mschmitt
Last active August 29, 2015 14:06
Show Gist options
  • Save mschmitt/cebf0ee4e56a746cb856 to your computer and use it in GitHub Desktop.
Save mschmitt/cebf0ee4e56a746cb856 to your computer and use it in GitHub Desktop.
Kommentare auf Newsseiten ausblenden (UserScript für Greasemonkey)
// ==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