Greasy Fork is available in English.
Remove VODCASTS from following page
当前为
// ==UserScript==
// @name Twitch VODCAST remover
// @namespace http://maxbrown.dk
// @version 0.2
// @description Remove VODCASTS from following page
// @author Max Brown
// @match https://www.twitch.tv/directory/following
// @grant none
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// ==/UserScript==
(function() {
'use strict';
$(document).ready(function() {
var maxTry = 200; // 20 secounds
var i = 0;
var inVal = setInterval(function() {
if ($(".pill").length) {
$(".pill").each(function(i,v) {
if ($(v).text().toLowerCase() == "vodcast") {
$(v).parent().parent().parent().parent().parent().remove();
}
});
}
if (i == maxTry) {
clearInterval(inVal);
}
i++;
}, 100);
});
})();