For viewing the debateart.com DART-Bux blockchain
当前为
// ==UserScript==
// @name DART-Bux Compiler
// @version 0.27
// @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;
// ‽
// location.search+="__DAB_Code:\u203Ditworks!\u203D";
// \u203D
window.onload = function letThereBeLight(){
vUrl = window.location.href;
mvz = 0;
shed = [];
// Get code
for(aa = 0; aa < vUrl.length; aa++){
hopper = "no code";
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++){
if(document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0]){
posts[aa] = document.getElementsByClassName("forum-topic-show__forum-post__text")[aa].children[0].children[0].innerHTML;
}
}
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]){} else {
posts.splice(aa,1);
}
}
document.getElementsByClassName("forum-topic-show__forum-post__text")[1].children[0].innerHTML = posts;
// Set code
pgOpt = "";
// 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="+(mvz+1)+"DAB_Code:\u203D"+(mvz+1)+"^"+pgOpt+"\u203D");
}
}
};