Bypass Pahe Links

Swiftly go through Teknoasian, Intercelestial, and Linegee to reach your destination link.

当前为 2023-09-17 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Bypass Pahe Links
  3. // @namespace https://naeembolchhi.github.io/
  4. // @version 0.60
  5. // @description Swiftly go through Teknoasian, Intercelestial, and Linegee to reach your destination link.
  6. // @author NaeemBolchhi
  7. // @license GPL-3.0-or-later
  8. // @icon https://pahe.li/wp-content/uploads/2017/12/favicon.ico
  9. // @require https://gf.qytechs.cn/scripts/456228/code/456228.js?version=1125944
  10. // @match https://teknoasian.com/*
  11. // @match https://linegee.net/*
  12. // @match https://intercelestial.com/*
  13. // @run-at document-start
  14. // @grant none
  15. // ==/UserScript==
  16.  
  17. // Make everything disappear!
  18. const voidCSS = `* {opacity: 0;z-index: -999999;}`;
  19. function addStyle(css) {
  20. let head = document.querySelector('head'),
  21. style = document.createElement('style');
  22. style.innerHTML = css;
  23. head.appendChild(style);
  24. }
  25. let headObserver = new MutationObserver(function() {
  26. if (document.title) {
  27. addStyle(voidCSS.replace(';',' !important;'));
  28. headObserver.disconnect();
  29. }
  30. });
  31. headObserver.observe(document.documentElement, {childList: true, subtree: true});
  32.  
  33. // Bypass Page 1 for Teknoasian
  34. function action1() {
  35. if (!window.location.host.match(/teknoasian/)) {return;}
  36. try {
  37. if (document.querySelector('#lite-human-verif-button')) {
  38. document.title = "Bypass Action (1/3)";
  39. document.querySelector('#lite-human-verif-button').click();
  40. }
  41. } catch {}
  42. }
  43.  
  44. // Bypass Page 2 for Teknoasian
  45. function action2() {
  46. if (!window.location.host.match(/teknoasian/)) {return;}
  47. try {
  48. if (document.querySelector('#scroll-end-button')) {
  49. document.title = "Bypass Action (2/3)";
  50. document.querySelector('#scroll-end-button').click();
  51. setTimeout(function() {
  52. document.title = "Close This Tab";
  53. }, 200);
  54. }
  55. } catch {}
  56. }
  57.  
  58. // Bypass Page 3 for Linegee
  59. function action3() {
  60. if (!window.location.host.match(/linegee/)) {return;}
  61. try {
  62. if (document.querySelector('.btn.btn-primary')) {
  63. document.title = "Bypass Action (3/3)";
  64. document.querySelector('.btn.btn-primary').click();
  65. }
  66. } catch {}
  67. }
  68.  
  69. // Bypass Page 1 for Intercelestial
  70. function action4() {
  71. if (!window.location.host.match(/intercelestial/)) {return;}
  72. try {
  73. if (document.querySelector('#soralink-human-verif-main')) {
  74. document.title = "Bypass Action (1/3)";
  75. let observer = new MutationObserver(function() {
  76. if (window.getComputedStyle(document.querySelector('#soralink-human-verif-main')).getPropertyValue('display') !== "none") {
  77. document.querySelector('#soralink-human-verif-main').click();
  78. }
  79. });
  80. observer.observe(document.querySelector('#soralink-human-verif-main'), {attributes: true});
  81. }
  82. } catch {}
  83. }
  84.  
  85. // Bypass Page 2 for Intercelestial
  86. function action5() {
  87. if (!window.location.host.match(/intercelestial/)) {return;}
  88. try {
  89. if (document.querySelector('#showlink')) {
  90. document.title = "Bypass Action (2/3)";
  91. document.querySelector('#showlink').click();
  92. setTimeout(function() {
  93. document.title = "Close This Tab";
  94. }, 200);
  95. }
  96. } catch {}
  97. }
  98.  
  99. // Wait for page to be "complete"
  100. document.onreadystatechange = function () {
  101. // Modify body when document is complete.
  102. if (document.readyState === 'complete') {
  103. action1();
  104. action2();
  105. action3();
  106. action4();
  107. action5();
  108. }
  109. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址