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

  1. // ==UserScript==
  2. // @name sABER-Click shortlink helper
  3. // @namespace Violentmonkey Scripts
  4. // @match *://blog.cryptowidgets.net/*
  5. // @match *://blog.insurancegold.in/*
  6. // @match *://blog.wiki-topia.com/*
  7. // @match *://blog.freeoseocheck.com/*
  8. // @match *://blog.coinsvalue.net/*
  9. // @match *://blog.cookinguide.net/*
  10. // @match *://blog.makeupguide.net/*
  11. // @match *://blog.carstopia.net/*
  12. // @match *://blog.carsmania.net/*
  13. // @match *://mdn.lol/*
  14. // @match *://rsinsuranceinfo.com/*
  15. // @match *://rssoftwareinfo.com/*
  16. // @match *://rsfinanceinfo.com/*
  17. // @match *://rseducationinfo.com/*
  18. // @match *://rsadnetworkinfo.com/*
  19. // @match *://rshostinginfo.com/*
  20. // @run-at document-end
  21. // @version 1.1.1
  22. // @author sABER (juansi)
  23. // @description Script de uso personal, adicional para pasar acortadores. Contribuciones via FaucetPay User: Crypto4Script. Try to take over the world!
  24. // ==/UserScript==
  25.  
  26. (function() { 'use strict';
  27.  
  28.  
  29. function getElement(selector) {
  30. return document.querySelector(selector);
  31. }
  32.  
  33. function existElement(selector) {
  34. return getElement(selector) !== null;
  35. }
  36.  
  37. function insertCallback(){
  38. let c = getElement('.g-recaptcha');
  39. c.setAttribute('data-callback', 'sABER');
  40. let s = document.createElement('script');
  41. if ( 0 === window.jQuery ) {
  42. s.textContent = 'function sABER() { let f = document.querySelector(".g-recaptcha").closest("form"); f.submit(); }';
  43. } else { s.textContent = 'function sABER() { let f = $(".g-recaptcha").parents("form"); f.submit(); }'; }
  44. document.body.appendChild(s);
  45. }
  46.  
  47. function formSubmit(selector, time){
  48. window.setTimeout(function(){
  49. if ( 0 === window.jQuery ) {
  50. var f = document.querySelector(selector).closest('form');
  51. } else { f = $(selector).parents('form'); }
  52. f.submit();
  53. }, time*1000);
  54. }
  55.  
  56. function iconCaptcha(selector){
  57. let t = setInterval(function() {
  58. let f = document.querySelector(".iconcaptcha-holder.iconcaptcha-theme-light.iconcaptcha-success");
  59. if (f) { formSubmit(selector, 1); clearInterval(t); }}, 3000);
  60. }
  61.  
  62. function invoke(selector, time, no_llores){
  63. if (existElement('.g-recaptcha')) { if (no_llores === false ) { document.title = 'reCaptcha'; }
  64. insertCallback();
  65. }
  66. else if (existElement('#iconcaptcha')) { document.title = 'iconCaptcha';
  67. iconCaptcha(selector);
  68. }
  69. else {
  70. formSubmit(selector, time);
  71. }
  72. }
  73.  
  74. var l = new URL(window.location.href);
  75. switch (l.hostname) {
  76.  
  77. case 'blog.cryptowidgets.net': case 'blog.insurancegold.in': case 'blog.wiki-topia.com':
  78. case 'blog.freeoseocheck.com': case 'blog.coinsvalue.net': case 'blog.cookinguide.net':
  79. case 'blog.makeupguide.net': case 'blog.carstopia.net': case 'blog.carsmania.net':
  80. invoke('#abb', 20, true);
  81. break;
  82. case 'mdn.lol':
  83. invoke('input[name="hidden"]', 15, false);
  84. break;
  85. case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
  86. case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
  87. invoke('input[name=csrf_test_name]', 5, false);
  88. break;
  89. default:
  90. break;
  91. }
  92. })();