您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
For viewing the debateart.com DART-Bux blockchain
当前为
// ==UserScript== // @name DART-Bux Compiler // @version 1 // @description For viewing the debateart.com DART-Bux blockchain // @author Perussi // @match *://www.debateart.com/forum/topics/2664/* // @grant none // @namespace https://greasyfork.org/users/128061 // ==/UserScript== var vUrl = 0; var aa = 0; var ab = 0; var mvz = 0; var hopper = 0; var posts = 0; var shed = 0; var pgOpt = 0; var db = 0; var dis = ["#5"]; // ‽ // location.search+="__DAB_Code:\u203Ditworks!\u203D"; // \u203D window.onload = function letThereBeLight(){ vUrl = window.location.href; mvz = 0; shed = []; // Get code hopper = "no code"; for(aa = 0; aa < vUrl.length; aa++){ if(vUrl.substring(aa,aa+9) === "DAB_Code:" && mvz === 0){ aa += 9; hopper = ""; mvz = 1; } if(mvz === 1){ hopper += vUrl.charAt(aa); } } if(hopper !== "no code"){ hopper = hopper.slice(9,hopper.length-9); shed[0] = ""; for(aa = 0; aa < hopper.length; aa++){ if(hopper.charAt(aa) !== "^"){ shed[0] += hopper.charAt(aa); } else { aa += hopper.length; } } hopper = hopper.slice(shed[0].length+1,hopper.length); Number(shed[0]); } posts = []; // Process code for(aa = 0; aa < document.getElementsByClassName("forum-topic-show__forum-post__text").length; aa++){ mvz = 1; for(ab = 0; ab < dis.length; ab++){ if(document.getElementsByClassName("forum-topic-show__forum-post__anchor")[aa].innerText === dis[ab]){ mvz = 0; } } if(document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0] && document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0].innerHTML !== "" && document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0].innerHTML !== "<br>" && mvz === 1){ posts[aa] = document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0].innerHTML; } else { posts[aa] = document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].innerHTML; } } document.getElementsByClassName("forum-topic-show__forum-post__text")[1].children[0].innerHTML = posts; for(aa = 0; aa < posts.length; aa++){ mvz = ""; if(posts[aa]){ for(ab = 0; ab < posts[aa].length; ab++){ if(posts[aa].substring(ab,ab+6) === "</div>" && 2 < ab){ ab += posts[aa].length; posts[aa] = posts[aa].slice(6,posts[aa].length); } else { mvz += posts[aa].charAt(ab); } } } posts[aa] = mvz; } for(aa = posts.length-1; -1 < aa; aa--){ if(posts[aa]){ if(posts[aa].charAt(0) !== "‽"){ posts.splice(aa,1); } } else { posts.splice(aa,1); } } for(aa = 0; aa < posts.length; aa++){ mvz = [0,1,["",""],""]; if(posts[aa].charAt(1) === ":"){ mvz[1] = 0; } for(ab = 0; ab < posts[aa].length; ab++){ if(mvz[1] === 0){ if(mvz[0] === 1 && posts[aa].charAt(ab) !== "‽"){ mvz[2][1] += posts[aa].charAt(ab); } if(mvz[0] === 0 && 1 < ab && posts[aa].charAt(ab) !== "‽"){ if(posts[aa].charAt(ab) === ":"){ mvz[0] = 1; } else { mvz[2][0] += posts[aa].charAt(ab); } } if(posts[aa].charAt(ab) === "‽" && 0 < ab){ mvz[0] = 2; } if(mvz[0] === 2){ if(posts[aa].charAt(ab) === "0" || posts[aa].charAt(ab) === "1" || posts[aa].charAt(ab) === "2" || posts[aa].charAt(ab) === "3" || posts[aa].charAt(ab) === "4" || posts[aa].charAt(ab) === "5" || posts[aa].charAt(ab) === "6" || posts[aa].charAt(ab) === "7" || posts[aa].charAt(ab) === "8" || posts[aa].charAt(ab) === "9"){ mvz[3] += posts[aa].charAt(ab); } } } else { if(posts[aa].charAt(ab) !== "‽" && mvz[0] === 0){ mvz[2][0] += posts[aa].charAt(ab); } if(mvz[0] === 1){ if(posts[aa].charAt(ab) === "0" || posts[aa].charAt(ab) === "1" || posts[aa].charAt(ab) === "2" || posts[aa].charAt(ab) === "3" || posts[aa].charAt(ab) === "4" || posts[aa].charAt(ab) === "5" || posts[aa].charAt(ab) === "6" || posts[aa].charAt(ab) === "7" || posts[aa].charAt(ab) === "8" || posts[aa].charAt(ab) === "9"){ mvz[3] += posts[aa].charAt(ab); } } if(posts[aa].charAt(ab) === "‽" && 0 < ab && mvz[0] === 0){ mvz[2][1] = document.getElementsByClassName("forum-topic-show__forum-post__author-username-link")[aa].children[0].innerHTML.slice(1,document.getElementsByClassName("forum-topic-show__forum-post__author-username-link")[aa].children[0].innerHTML.length-1); mvz[0] = 1; } } } Number(mvz[3]); posts[aa] = [mvz[2][0],mvz[2][1],mvz[3]]; } pgOpt = ""; if(hopper !== "no code"){ pgOpt = hopper+":"; } for(aa = 0; aa < posts.length; aa++){ if(aa !== posts.length-1){ pgOpt += posts[aa][0]+">"+posts[aa][1]+">"+posts[aa][2]+":"; } else { pgOpt += posts[aa][0]+">"+posts[aa][1]+">"+posts[aa][2]; } } // Next page mvz = ""; for(aa = 0; aa < document.getElementsByClassName("forum-topic-show__total-posts-number")[0].children[0].innerHTML.length; aa++){ if(document.getElementsByClassName("forum-topic-show__total-posts-number")[0].children[0].innerHTML.charAt(aa) !== ","){ mvz += document.getElementsByClassName("forum-topic-show__total-posts-number")[0].children[0].innerHTML.charAt(aa); } } Number(mvz); if(hopper !== "no code" && Math.ceil(mvz/25) !== 1){ if(Math.ceil(mvz/25) !== shed[0]){ window.location.assign("https://www.debateart.com/forum/topics/2664/dart-bux-blockchain-thread?page="+(Math.ceil(mvz/25)+1)+"__DAB_Code:\u203D"+(Math.ceil(mvz/25)+1)+"^"+pgOpt+"\u203D"); } } if(Math.ceil(mvz/25) === 1 && hopper === "no code"){ window.location.assign(window.location.href+"?page="+Math.ceil(mvz/25)+"__DAB_Code:\u203D"+Math.ceil(mvz/25)+"^"+pgOpt+"\u203D"); } };