Skip to content

Instantly share code, notes, and snippets.

@mhermans mhermans/dwm-filter.js
Last active Dec 17, 2015

Embed
What would you like to do?
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
You can’t perform that action at this time.