sABER-Click shortlink helper

Script de uso personal, adicional para pasar acortadores. Contribuciones via FaucetPay User: Crypto4Script. Try to take over the world!

目前为 2023-09-20 提交的版本。查看 最新版本

// ==UserScript==
// @name        sABER-Click shortlink helper
// @namespace   Violentmonkey Scripts
// @match       *://blog.cryptowidgets.net/*
// @match       *://blog.insurancegold.in/*
// @match       *://blog.wiki-topia.com/*
// @match       *://blog.freeoseocheck.com/*
// @match       *://blog.coinsvalue.net/*
// @match       *://blog.cookinguide.net/*
// @match       *://blog.makeupguide.net/*
// @match       *://blog.carstopia.net/*
// @match       *://blog.carsmania.net/*
// @match       *://mdn.lol/*
// @match       *://rsinsuranceinfo.com/*
// @match       *://rssoftwareinfo.com/*
// @match       *://rsfinanceinfo.com/*
// @match       *://rseducationinfo.com/*
// @match       *://rsadnetworkinfo.com/*
// @match       *://rshostinginfo.com/*
// @grant       none
// @run-at      document-end
// @version     1.3
// @author      sABER (juansi)
// @description Script de uso personal, adicional para pasar acortadores. Contribuciones via FaucetPay User: Crypto4Script. Try to take over the world!
// ==/UserScript==

(function() { 'use strict';

function getElement(selector) {
return document.querySelector(selector);
}

function existElement(selector) {
return getElement(selector) !== null;
}

function formSubmit(selector, time) {
if ( typeof selector === 'string'){
window.setTimeout(()=>{
getElement(selector)
.closest('form')
.submit();
}, time*1000);
} else { window.setTimeout(()=>{
selector
.submit();
}, time*1000);
}
}

function iconCaptcha(selector){
let t = setInterval(()=>{
let f = getElement(".iconcaptcha-holder.iconcaptcha-theme-light.iconcaptcha-success");
if (f) { formSubmit(selector, 1);
clearInterval(t);
}
}, 3000);
}

function changeTitle(text){
document.title = text;
window.setTimeout(()=>{
changeTitle(text.substr(1) + text.substr(0, 1));
}, 200);
}

function invoke(selector, time){
if (existElement('.g-recaptcha')) {
changeTitle(' google captcha');   //Coloca lo que quieras para recordar resolver captcha o comenta esta linea si no lo necesitas;
let t = setInterval(()=> { if (window.grecaptcha.getResponse().length !==0) {
formSubmit('.g-recaptcha', 1);
clearInterval(t);
}
}, 1000);
}
else if (existElement('#iconcaptcha')) {
changeTitle(' Solve iconCaptcha ');
iconCaptcha(selector);
}
else {
formSubmit(selector, time);
}
}

                  var l = new URL(window.location.href);
                switch (l.hostname) {
                  case 'blog.cryptowidgets.net': case 'blog.insurancegold.in': case 'blog.wiki-topia.com':
                  case 'blog.freeoseocheck.com': case 'blog.coinsvalue.net': case 'blog.cookinguide.net':
                  case 'blog.makeupguide.net': case 'blog.carstopia.net': case 'blog.carsmania.net':
                    invoke('#abb', 20);
                  break;
                  case 'mdn.lol':
                    invoke('#overlay', 20);
                  break;
                  case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
                  case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
                    invoke('input[name=csrf_test_name]', 5);
                  break;
                  default:
                  break;
                                     }
             })();