Greasy Fork

Greasy Fork is available in English.

Dailyindiegame Extension

em....很弱的脚本.DIG商店自动隐藏无卡及已拥有游戏

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Dailyindiegame Extension
// @namespace    http://tampermonkey.net/
// @description  em....很弱的脚本.DIG商店自动隐藏无卡及已拥有游戏
// @match        *://www.dailyindiegame.com/content*
// @match        *://dailyindiegame.com/content*
// @require      https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js
// @version      20180510
// ==/UserScript==

(function() {
    $(document).ready(function(){
        var gameList,gameNum,gcard,owned,ownapp,digacc;
        gameList = $("tr.DIG3_14_Gray");
        gameNum = gameList.length;
        for(var i=0;i<gameNum;i++){
            gcard = gameList[i].children[2].innerText;
            if(gcard===""){
                $(gameList[i]).hide();
            }
        }
        digacc = $("td.DIG3_14_Orange");
        for(var n=0;n<digacc.length;n++){
            if(digacc[n].innerText===""){
                $(digacc[n]).parent().hide();
            }
        }
        setTimeout(function(){
            owned = $("span[style='color: green; cursor: help;']");
            for(var j=0;j<owned.length;j++){
                ownapp = owned[j].innerText;
                if(ownapp===" ✔"){
                    $(owned[j]).parent().parent().hide();
                }
            }
        //延迟时间
        },4444);
    });
})();