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-10 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

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

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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       *://rsinsuranceinfo.com/*
// @match       *://rssoftwareinfo.com/*
// @match       *://rsfinanceinfo.com/*
// @match       *://rseducationinfo.com/*
// @match       *://rsadnetworkinfo.com/*
// @match       *://rshostinginfo.com/*
// @run-at      document-end
// @version     1.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, no_llores){
if (existElement('.g-recaptcha')) { if (no_llores === false ) { 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, true);
                  break;
                  case 'mdn.lol':
                    invoke('input[name="hidden"]', 15, false);
                  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, false);
                  break;
                  default:
                  break;
                                     }
             })();