Greasy Fork

Greasy Fork is available in English.

steam链接已删除?

重新显示steam{链接已删除}的链接

目前为 2019-09-28 提交的版本,查看 最新版本

// ==UserScript==
// @name         steam链接已删除?
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  重新显示steam{链接已删除}的链接
// @author       HCLonely
// @match        *://steamcommunity.com/*
// @match        *://store.steampowered.com/*
// @supportURL   https://blog.hclonely.com/?topic=steam%e9%93%be%e6%8e%a5%e5%b7%b2%e5%88%a0%e9%99%a4%ef%bc%9f
// @homepage     https://blog.hclonely.com/?topic=steam%e9%93%be%e6%8e%a5%e5%b7%b2%e5%88%a0%e9%99%a4%ef%bc%9f
// ==/UserScript==

(function() {
    'use strict';
    function showLink(){
        jQuery(".bb_removedlink").hide();
        jQuery(".collapsed_link").show();
        jQuery("a.collapsed_link[href=#]").map((i,e)=>{
            jQuery(e).attr('href',jQuery(e).text().trim());
            jQuery(e).attr('target',"_blank");
        });
    }
    setInterval(showLink,1000);
})();