本帖最后由 梦汐 于 2022-6-15 03:44 编辑
花了点时间重写并修复一下BUG,方便以后会增加其他功能。安装传送门
[JavaScript] 纯文本查看 复制代码 // ==UserScript==
// @name Steam轻量扩展
// @namespace Violentmonkey Scripts
// @match *://store.steampowered.com/app/*
// @grant none
// @version 1.2
// @author -
// @license MIT
// @description 2022/5/17 上午11:21:16
// ==/UserScript==
var I_style = "border-radius: 2px;border: none;padding: 1px;display: inline-block;cursor: pointer;text-decoration: none !important;color: #67c1f5 !important;background: rgba( 103, 193, 245, 0.2 );padding: 0 15px;font-size: 15px;line-height: 30px;"
var list = {
验号:function(){window.open("https://lixianla.com/search-"+/app\/(\d+)/.exec(window.location.href)[1]+"-3.htm")},
市场:function(){window.open("https://steamcommunity.com/market/search?q="+$1(".apphub_AppName")[0].innerHTML)},
价格:function(){window.open("https://steamdb.info/app/"+/app\/(\d+)/.exec(window.location.href)[1])},
};Statistics=0;
for(I_name in list){Statistics++;
if (Statistics>1) {
var style_ex = "margin-left: 3px";
}
else{
var style_ex = "";
}
var Temporary = document.createElement('div');
Temporary.innerHTML='<span>'+I_name+'</span>';
Temporary.setAttribute("class","shichang");
Temporary.setAttribute("style",I_style+style_ex);
document.getElementById("queueBtnFollow").appendChild(Temporary);
Temporary.onclick=list[I_name]
} |