Greasy Fork 还支持 简体中文。

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 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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
// @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;
                                     }
             })();