Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// ==UserScript==
// @name RaumZeitDeponifier
// @namespace http://gist.github.com/040c9009cfcb443d1d92
// @description Removes images from RZL blogposts which are likely to contain ponies
// @include http://raumzeitlabor.de/
// @include http://raumzeitlabor.de/blog/*
// @include https://raumzeitlabor.de/
// @include https://raumzeitlabor.de/blog/*
// @version 1
// @grant none
// ==/UserScript==
$(document).ready(function () {
/*
* The following line implements an elaborated algorithm to predict which
* blogposts have a high probability to contain pony pictures. In the
* spirit of "worse is better" the algorithm is designed to match very
* fuzzy and to favour false postives over false negatives.
*
* The author is quite happy with the results, YMMV though.
*/
var p = $('div.rzl-blogpost-meta > p.rzl-user:Contains(abrock)').parent().prev();
/* Hide images in suspicious blogposts. */
$('img', p).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.