Created
October 26, 2015 16:36
-
-
Save jo32/e9c6d835449edeb4465a to your computer and use it in GitHub Desktop.
Douyu Anchors Block Script for Greasemonkey
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 Block Douyu Author | |
// @namespace http://jiangdl.com/ | |
// @version 0.1 | |
// @description Block Douyu Author | |
// @author You | |
// @match http://www.douyutv.com/directory/game/* | |
// @grant none | |
// ==/UserScript== | |
var blockList = [ | |
'未展之眉', | |
'钢板小法' | |
]; | |
$('a.list').each(function(index, val) { | |
var author = $(val).find('.nnt').text(); | |
if (blockList.indexOf(author) >= 0) { | |
$(val).parent().css('display', 'none'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment