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

  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.7
  31. // @author sABER (juansi)
  32. // @run-at document-start
  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.submit();
  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 disable_timers(string2find, nameFunc){
  88. var target = window[nameFunc];
  89. window[nameFunc] = function(...args){
  90. const stringFunc = String(args);
  91. if ((new RegExp(string2find)).test(stringFunc)) args[0] = function(){};
  92. return target.call(this, ...args);
  93. };
  94. }
  95.  
  96. function getForm(){
  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. Object.defineProperty(document, 'querySelector', { value: document.querySelector, configurable: false, writable: false });
  105. Object.defineProperty(HTMLFormElement.prototype, 'submit', { writable: false });
  106. disable_timers('(/ad-now.php|/bypass|Solve reCaptcha)', 'setInterval');
  107. disable_timers('(bl0ck3d|Solve reCaptcha|isRequestPresent|repeat)', 'setTimeout');
  108.  
  109. var l = new URL(window.location.href);
  110. switch (l.hostname) {
  111. case 'blog.cryptowidgets.net': case 'blog.insurancegold.in': case 'blog.wiki-topia.com':
  112. case 'blog.freeoseocheck.com': case 'blog.coinsvalue.net': case 'blog.cookinguide.net':
  113. case 'blog.makeupguide.net': case 'blog.carstopia.net': case 'blog.carsmania.net':
  114. document.addEventListener('DOMContentLoaded', function() { document.querySelectorAll('.row.text-center').forEach((dtc) => dtc.parentNode.removeChild(dtc)); invoke('#countdown', 20); });
  115. break;
  116. case 'worldtanr.xyz': case 'awgrow.com': case 'fadedfeet.com':
  117. case 'kenzo-flowertag.com': case 'homeculina.com': case 'lawyex.co':
  118. document.addEventListener('DOMContentLoaded', function() { invoke('form[id]', 10); });
  119. break;
  120. case 'mdn.lol':
  121. document.addEventListener('DOMContentLoaded', function() { invoke('form.text-center', 10); });
  122. break;
  123. case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
  124. case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
  125. document.addEventListener('DOMContentLoaded', function() { invoke(getForm(), 5); });
  126. break;
  127. default:
  128. break;
  129. }
  130. })();