sABER-Click shortlink helper

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

Stan na 10-09-2023. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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/*
// @run-at      document-end
// @version     1.1
// @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 insertCallback(){
let c = getElement('.g-recaptcha');
c.setAttribute('data-callback', 'sABER');
let s = document.createElement('script');
if ( 0 === window.jQuery ) {
s.textContent = 'function sABER() { let f = document.querySelector(".g-recaptcha").closest("form"); f.submit(); }';
} else { s.textContent = 'function sABER() { let f = $(".g-recaptcha").parents("form"); f.submit(); }'; }
document.body.appendChild(s);
}

function formSubmit(selector, time){
window.setTimeout(function(){
if ( 0 === window.jQuery ) {
var f = document.querySelector(selector).closest('form');
} else { f = $(selector).parents('form'); }
f.submit();
}, time*1000);
}

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

function invoke(selector, time){
if (existElement('.g-recaptcha')) { document.title = 'reCaptcha';
insertCallback();
}
else if (existElement('#iconcaptcha')) { document.title = '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('input[name="hidden"]', 15);
                  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;
                                     }
             })();