您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
rt
// ==UserScript== // @name Endless deviantart gallery pages // @namespace https://www.topcl.net/ // @version 0.2 // @description rt // @author vj // @match http://*.deviantart.com/gallery/* // @match http://*.deviantart.com/favourites/* // @match http://*.deviantart.com/prints/* // @grant none // ==/UserScript== var pg=1; function loadPage(url) { //debugger; pg++; console.log("loadPage " + pg + " - " + url); //load html var xhr=new XMLHttpRequest(); xhr.open("GET",url,true); xhr.send(null); xhr.onload = function (e) { if (xhr.readyState === 4 && xhr.status === 200) { //parse html var ndoc=document.implementation.createHTMLDocument(""); ndoc.body.innerHTML=xhr.response; //check result var rs=ndoc.getElementById("gmi-ResourceStream"); if(!rs){console.log("Stop: gmi-ResourceStream not found");} //add to page document.getElementById("gmi-ResourceStream").innerHTML+=rs.innerHTML; //check next page var next=$(ndoc).find(".next>a").attr("href"); if(!next) { console.log("Stop: not found .next>a href"); return; } //go next page loadPage(next); } }; } loadPage(document.getElementById("gmi-GPageButton").href);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址