forked from masterX244/BlakeyNope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDailyWTF_Comment_Cleaner_experimental.user.js
33 lines (32 loc) · 1.41 KB
/
DailyWTF_Comment_Cleaner_experimental.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// ==UserScript==
// @name DailyWTF Comment Cleaner
// @namespace https://github.com/masterX244
// @version 0.1
// @description Sterilize TDWTF Comments. Experimental Edition with untested changes. May not work
// @author Mike Unfried
// @match http://thedailywtf.com/articles/comments/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var names = ['B L A K E Y R A T','Blakeyrat','b?keyrat','blameyrat','Fuck you alex','bläkeyrat','blockyrat','Ulysses','B lALye key RraBlaRAT','B lALye key RraBlaRAT',
'Bla-key-rat','blaKEY RaT','CHARLIEMOUSE','TenshiNo','b l a k e y r a t','blakeyrat','BonkeyRatt','BarfyRoot',
'bakedrat'];
var contains = '';
for (var i = 0; i < names.length; i++) {
if (i > 0) contains += ", ";
contains += "span.poster:contains('" + names[i] + "')";
}
//.comments>.comment { max-height:20em; overflow-y:auto; }
$(".comments > .comment").css({maxHeight: '20em', overflow: 'auto' });
//.comments>.comment>div>img{display:none}
$(".comments > .comment > div > img").css("display", "none");
$("li.comment").filter(function(index) {
return (
$(this).children(contains).length > 0 &&
$(this).children("span.poster-anon:contains('(unregistered)')").length > 0);
}).hide();
$(function(){
$('*').remove('img[src*="meatspin"]');
});
})();