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-04 提交的版本,查看 最新版本

  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.  
  14. // @match *://mdn.lol/*
  15. // @match *://awgrow.com/*
  16. // @match *://worldtanr.xyz/*
  17. // @match *://fadedfeet.com/*
  18. // @match *://kenzo-flowertag.com/*
  19. // @match *://homeculina.com/*
  20. // @match *://lawyex.co/*
  21.  
  22. // @match *://rsinsuranceinfo.com/*
  23. // @match *://rssoftwareinfo.com/*
  24. // @match *://rsfinanceinfo.com/*
  25. // @match *://rseducationinfo.com/*
  26. // @match *://rsadnetworkinfo.com/*
  27. // @match *://rshostinginfo.com/*
  28.  
  29. // @grant none
  30. // @version 1.5
  31. // @author sABER (juansi)
  32. // @run-at document-end
  33. // @description Script de uso personal, adicional para pasar acortadores. Contribuciones via FaucetPay User: Crypto4Script. Try to take over the world!
  34. // ==/UserScript==
  35.  
  36. (function() { 'use strict';
  37.  
  38. function getElement(selector) {
  39. return document.querySelector(selector);
  40. }
  41.  
  42. function existElement(selector) {
  43. return getElement(selector) !== null;
  44. }
  45.  
  46. function formSubmit(selector, time) {
  47. window.setTimeout(()=>{
  48. let elem = (typeof selector === 'string') ? getElement(selector).closest('form') : selector;
  49. elem.requestSubmit();
  50. }, time*1000);
  51. }
  52.  
  53. function iconCaptcha(selector){
  54. let t = setInterval(()=>{
  55. let f = getElement(".iconcaptcha-holder.iconcaptcha-theme-light.iconcaptcha-success");
  56. if (f) { formSubmit(selector, 1);
  57. clearInterval(t);
  58. }
  59. }, 3000);
  60. }
  61.  
  62. function changeTitle(text){
  63. document.title = text;
  64. window.setTimeout(()=>{
  65. changeTitle(text.substr(1) + text.substr(0, 1));
  66. }, 200);
  67. }
  68.  
  69. function invoke(selector, time){
  70. if (existElement('.g-recaptcha')) {
  71. changeTitle(' Solve reCaptcha ');
  72. let t = window.setInterval(()=> {if (window.grecaptcha.getResponse().length !==0) {
  73. formSubmit('.g-recaptcha', 1);
  74. clearInterval(t);
  75. }
  76. }, 1000);
  77. }
  78. else if (existElement('input[name=_iconcaptcha-token]')) {
  79. changeTitle(' Solve iconCaptcha ');
  80. iconCaptcha(selector);
  81. }
  82. else {
  83. formSubmit(selector, time);
  84. }
  85. }
  86.  
  87. function undetectable(string2find, nameFunc){ //. Implementación en fase experimental;
  88. var target = window[nameFunc]; //. Desactiva esta función si experimentas redirecciones debido a adblock u otro sistema de protección;
  89. window[nameFunc] = function(...args){
  90. const stringFunc = String(args);
  91. if (stringFunc.includes(string2find)) args[0] = function(){};
  92. return target.call(this, ...args);
  93. };
  94. }
  95.  
  96. function getForm(){ //. Se puede mejorar pero por ahora es lo que hay;
  97. var forms = document.forms;
  98. for (var i = 0; i < forms.length; i++)
  99. { var bait = forms[i].action;
  100. if (/bypass.html|adblock.html/.test(bait)) continue;
  101. return forms[i]; }
  102. }
  103.  
  104. var l = new URL(window.location.href);
  105. switch (l.hostname) {
  106. case 'blog.cryptowidgets.net': case 'blog.insurancegold.in': case 'blog.wiki-topia.com':
  107. case 'blog.freeoseocheck.com': case 'blog.coinsvalue.net': case 'blog.cookinguide.net':
  108. case 'blog.makeupguide.net': case 'blog.carstopia.net': case 'blog.carsmania.net':
  109. invoke('#abb', 20);
  110. break;
  111. case 'mdn.lol': case 'worldtanr.xyz': case 'awgrow.com': case 'fadedfeet.com':
  112. case 'kenzo-flowertag.com': case 'homeculina.com': case 'lawyex.co':
  113. undetectable('/bypass', 'setInterval');
  114. invoke('input[type=hidden]', 15);
  115. break;
  116. case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
  117. case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
  118. invoke(getForm(), 15);
  119. break;
  120. default:
  121. break;
  122. }
  123. })();