Last active
December 24, 2023 08:09
-
-
Save blabber/040c9009cfcb443d1d92 to your computer and use it in GitHub Desktop.
RaumZeitDeponyfier - Removes images from RZL blogposts which are likely to contain ponies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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