您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simplify view of BGG Math Trades Step 4
当前为
// ==UserScript== // @name Simply Step 4 // @namespace http://userscripts.org // @description Simplify view of BGG Math Trades Step 4 // @include http://bgg.activityclub.org/olwlg/mywants.cgi* // @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @version 0.3 // @grant none // ==/UserScript== //hide lines that are associated with dummy itens $('#wants .ondummy').each(function () { $(this).addClass("dummyitemcontainer").hide(); }); //hide columns with green text. It hides based on index, and the last row is trick because it has on less td $('#wants tr.head tt font[color="green"]') .each(function () { var tt = $(this).parent().parent(); var tohideth = tt.index() + 1; var tohidelr = tohideth - 1; $('#wants tr:not(:last-child) td:nth-child(' + tohideth + ')').hide().addClass("dummyitemcontainer"); $('#wants th:nth-child(' + tohideth + ')') .hide().addClass("dummyitemcontainer"); $('#wants tr:last-child td:nth-child(' + tohidelr + ')') .hide().addClass("dummyitemcontainer"); }); //adjust table size $('#wants tbody') .css('height', 'auto'); $('<td/>', { id: "hideshow", html: "Toggle Dummy Association" }).insertAfter($('#tabofficial1')); $('#hideshow').click(function () { $('.dummyitemcontainer').toggle(); });