Skip to content

Instantly share code, notes, and snippets.

@blabber
Last active December 24, 2023 08:09
Show Gist options
  • Save blabber/040c9009cfcb443d1d92 to your computer and use it in GitHub Desktop.
Save blabber/040c9009cfcb443d1d92 to your computer and use it in GitHub Desktop.
RaumZeitDeponyfier - Removes images from RZL blogposts which are likely to contain ponies
// ==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 2
// @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-function:Contains(Abrock School of Engineering)').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