您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2022/5/8 16:10:20
// ==UserScript== // @name steam csgo社区商店 页面跳转 - steamcommunity.com // @namespace Violentmonkey Scripts // @match https://steamcommunity.com/market/listings/730/* // @grant none // @version 1.0 // @author - // @description 2022/5/8 16:10:20 // @license GPL License // ==/UserScript== (function() { var style = document.createElement("style"); style.type = "text/css"; style.appendChild(document.createTextNode(".myBtnStyle{display:inline-block;background-color:#799905; font-size:10px;color:#FFF;margin-left:15px;padding:2px;border-radius:3px;cursor:pointer;}")); var head = document.getElementsByTagName("head")[0]; head.appendChild(style); let appendSpan = document.createElement("SPAN"); appendSpan.innerHTML = "<input id='appendSpanInput' /><div id='gotoPage' class='myBtnStyle'>跳转</div>" document.getElementsByClassName('market_paging_summary')[0].appendChild(appendSpan) document.getElementById("gotoPage").addEventListener("click",function(event){ let v = document.getElementById("appendSpanInput").value + "0"; fetch(window.location.href +'/render/?query=&start='+v+'&count=10&country=CN&language=schinese¤cy=23',{ method:'GET', // headers:Headers, mode:'cors' }).then(Response=> Response.json()).then( data => { if(data == null){ alert("请求次数过多或页数输入错误,请稍后再试!") } else{ document.getElementById("searchResultsRows").innerHTML = data['results_html']; } } ); }) })();