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

  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. // @grant none
  21. // @run-at document-end
  22. // @version 1.3
  23. // @author sABER (juansi)
  24. // @description Script de uso personal, adicional para pasar acortadores. Contribuciones via FaucetPay User: Crypto4Script. Try to take over the world!
  25. // ==/UserScript==
  26.  
  27. (function() { 'use strict';
  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 formSubmit(selector, time) {
  38. if ( typeof selector === 'string'){
  39. window.setTimeout(()=>{
  40. getElement(selector)
  41. .closest('form')
  42. .submit();
  43. }, time*1000);
  44. } else { window.setTimeout(()=>{
  45. selector
  46. .submit();
  47. }, time*1000);
  48. }
  49. }
  50.  
  51. function iconCaptcha(selector){
  52. let t = setInterval(()=>{
  53. let f = getElement(".iconcaptcha-holder.iconcaptcha-theme-light.iconcaptcha-success");
  54. if (f) { formSubmit(selector, 1);
  55. clearInterval(t);
  56. }
  57. }, 3000);
  58. }
  59.  
  60. function changeTitle(text){
  61. document.title = text;
  62. window.setTimeout(()=>{
  63. changeTitle(text.substr(1) + text.substr(0, 1));
  64. }, 200);
  65. }
  66.  
  67. function invoke(selector, time){
  68. if (existElement('.g-recaptcha')) {
  69. changeTitle(' google captcha'); //Coloca lo que quieras para recordar resolver captcha o comenta esta linea si no lo necesitas;
  70. let t = setInterval(()=> { if (window.grecaptcha.getResponse().length !==0) {
  71. formSubmit('.g-recaptcha', 1);
  72. clearInterval(t);
  73. }
  74. }, 1000);
  75. }
  76. else if (existElement('#iconcaptcha')) {
  77. changeTitle(' Solve iconCaptcha ');
  78. iconCaptcha(selector);
  79. }
  80. else {
  81. formSubmit(selector, time);
  82. }
  83. }
  84.  
  85. var l = new URL(window.location.href);
  86. switch (l.hostname) {
  87. case 'blog.cryptowidgets.net': case 'blog.insurancegold.in': case 'blog.wiki-topia.com':
  88. case 'blog.freeoseocheck.com': case 'blog.coinsvalue.net': case 'blog.cookinguide.net':
  89. case 'blog.makeupguide.net': case 'blog.carstopia.net': case 'blog.carsmania.net':
  90. invoke('#abb', 20);
  91. break;
  92. case 'mdn.lol':
  93. invoke('#overlay', 20);
  94. break;
  95. case 'rsinsuranceinfo.com': case 'rssoftwareinfo.com': case 'rsfinanceinfo.com':
  96. case 'rseducationinfo.com': case 'rsadnetworkinfo.com': case 'rshostinginfo.com':
  97. invoke('input[name=csrf_test_name]', 5);
  98. break;
  99. default:
  100. break;
  101. }
  102. })();