Skip to content

Instantly share code, notes, and snippets.

@mhermans
Last active December 17, 2015 04:09
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 mhermans/5548349 to your computer and use it in GitHub Desktop.
Save mhermans/5548349 to your computer and use it in GitHub Desktop.
Greasemonkey script demonstrating hiding comments by user on dewereldmorgen.be
// ==UserScript==
// @name dwm-filter
// @include http://www.dewereldmorgen.be/artikels/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
// @description example script demonstrating how to automagically hide DWM comments of certain users,
// ==/UserScript==
// select all comments based on author href attribute
var comments = $('a[href$="/people/mohamed-talhaoui"]');
// navigate up to parent div, hide comment
comments.parent().parent().parent().hide();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment