Skip to content

Instantly share code, notes, and snippets.

@jo32
Created October 26, 2015 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jo32/e9c6d835449edeb4465a to your computer and use it in GitHub Desktop.
Save jo32/e9c6d835449edeb4465a to your computer and use it in GitHub Desktop.
Douyu Anchors Block Script for Greasemonkey
// ==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