sABER-Click shortlink helper

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

当前为 2023-12-18 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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       *://awgrow.com/*
// @match       *://worldtanr.xyz/*
// @match       *://fadedfeet.com/*
// @match       *://kenzo-flowertag.com/*
// @match       *://homeculina.com/*
// @match       *://lawyex.co/*

// @match       *://rsinsuranceinfo.com/*
// @match       *://rssoftwareinfo.com/*
// @match       *://rsfinanceinfo.com/*
// @match       *://rseducationinfo.com/*
// @match       *://rsadnetworkinfo.com/*
// @match       *://rshostinginfo.com/*

// @grant       none
// @version     1.8
// @author      sABER (juansi)
// @run-at      document-start
// @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) {
window.setTimeout(()=>{
let elem = (typeof selector === 'string') ? getElement(selector).closest('form') : selector;
elem.submit();
}, time*1000);
}

function setCaptchaVisible(captcha){
var $div = $(captcha).parents('div');
for (var i = 0; i<$div.length; i++){
if ($div[i].style.display === 'none') { $div[i].style.display = 'block'; }
}
}
function iconCaptcha(selector){
let t = setInterval(()=>{
setCaptchaVisible('.iconcaptcha-modal');
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(' Solve reCaptcha ');
let t = window.setInterval(()=> {if (window.grecaptcha.getResponse().length !==0) {
formSubmit('.g-recaptcha', 1);
clearInterval(t);
}
}, 1000);
}
else if (existElement('input[name=_iconcaptcha-token]')) {
changeTitle(' Solve iconCaptcha ');
iconCaptcha(selector);
}
else {
formSubmit(selector, time);
}
}

function disable_timers(string2find, nameFunc){
var target = window[nameFunc];
window[nameFunc] = function(...args){
const stringFunc = String(args);
if ((new RegExp(string2find)).test(stringFunc)) args[0] = function(){};
return target.call(this, ...args);
}
}

function getForm(){
var forms = document.forms;
for (var i = 0; i < forms.length; i++)
{ var bait = forms[i].action;
if (/bypass.html|adblock.html/.test(bait)) continue;
return forms[i]; }
}

Object.defineProperty(document, 'querySelector', { value: document.querySelector, configurable: false, writable: false });
Object.defineProperty(HTMLFormElement.prototype, 'submit', { writable: false });
disable_timers('(/ad-now.php|/bypass|Solve reCaptcha)', 'setInterval');
disable_timers('(bl0ck3d|Solve reCaptcha|isRequestPresent|repeat)', 'setTimeout');

             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':
                    document.addEventListener('DOMContentLoaded', function() { document.querySelectorAll('.row.text-center').forEach((dtc) => dtc.parentNode.removeChild(dtc)); invoke('#countdown', 20); });
                  break;
                  case 'worldtanr.xyz': case 'awgrow.com': case 'fadedfeet.com':
                  case 'kenzo-flowertag.com': case 'homeculina.com': case 'lawyex.co':
                    document.addEventListener('DOMContentLoaded', function() { invoke('form[id]', 10); });
                  break;
                  case 'mdn.lol':
                    document.addEventListener('DOMContentLoaded', function() { invoke('input[style]', 10); });
                  break;
                  case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
                  case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
                    document.addEventListener('DOMContentLoaded', function() { invoke(getForm(), 5); });
                  break;
                  default:
                  break;
                                     }
             })();