您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide items with infinite supply on the "All" tab of the Item Shop
当前为
// ==UserScript== // @name HV Hide Infinite Items // @description Hide items with infinite supply on the "All" tab of the Item Shop // @include http://hentaiverse.org/?s=Bazaar&ss=is* // @version 0.0.1.20141104152002 // @namespace https://greasyfork.org/users/2233 // ==/UserScript== var wnd = window var doc = wnd.document var loc = location var href = loc.href var $ = function(e, css) { if(!css) { css=e; e=doc }; return e.querySelector(css) } var $$ = function(e, css) { if(!css) { css=e; e=doc }; return e.querySelectorAll(css) } if(/&ss=is/.test(href)) { if(/&filter=all/.test(href) || (!/&filter=/.test(href))) { var shop_pane = $('#shop_pane') var items = $$(shop_pane, '.idp') var supplies = $$(shop_pane, '.ii') for(var i=0, len=items.length; i<len; i++) { if(isNaN(parseInt(supplies[i].textContent))) { items[i].parentNode.parentNode.style.display = 'none' } } } }