GoFile Bypass

GoFile Link Bypass

目前為 2025-02-22 提交的版本,檢視 最新版本

  1. // ==UserScript==
  2. // @name GoFile Bypass
  3. // @version 1.0
  4. // @description GoFile Link Bypass
  5. // @author GameDrive.Org
  6. // @match *://gofile.io/*
  7. // @icon https://www.google.com/s2/favicons?domain=gofile.io
  8. // @grant GM_openInTab
  9. // @namespace http://tampermonkey.net/
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. console.log('GoFile Link Extractor script is running...');
  16.  
  17. let jsonData = null;
  18. let hasPermission = localStorage.getItem('gofile_open_permission') === 'true';
  19.  
  20. const originalConsoleLog = console.log;
  21. console.log = function(...args) {
  22. originalConsoleLog.apply(console, args);
  23. args.forEach(arg => {
  24. if (typeof arg === 'object' && arg.status === 'ok' && arg.data && arg.data.children) {
  25. jsonData = arg;
  26. console.log = originalConsoleLog;
  27. useCapturedData();
  28. }
  29. });
  30. };
  31.  
  32. function useCapturedData() {
  33. if (jsonData) {
  34. const links = Object.values(jsonData.data.children)
  35. .filter(item => item.type === 'file' && item.link)
  36. .map(item => item.link);
  37. displayLinks(links);
  38. }
  39. }
  40.  
  41. function displayLinks(links) {
  42. const container = document.createElement('div');
  43. container.style.cssText = `
  44. position: fixed;
  45. top: 50%;
  46. left: 50%;
  47. transform: translate(-50%, -50%);
  48. background: #181818;
  49. color: #fff;
  50. padding: 18px;
  51. border-radius: 12px;
  52. box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
  53. width: 90%;
  54. max-width: 450px;
  55. font-family: Arial, sans-serif;
  56. text-align: center;
  57. z-index: 9999;
  58. `;
  59.  
  60. const title = document.createElement('h3');
  61. title.textContent = 'Download Links';
  62. title.style.marginTop = '0';
  63. title.style.color = '#f8f9fa';
  64. container.appendChild(title);
  65.  
  66. const textarea = document.createElement('textarea');
  67. textarea.value = links.join('\n');
  68. textarea.style.cssText = `
  69. width: 100%;
  70. background: #222;
  71. color: #ddd;
  72. border: none;
  73. border-radius: 8px;
  74. padding: 10px;
  75. min-height: 140px;
  76. font-size: 13px;
  77. resize: vertical;
  78. outline: none;
  79. transition: 0.3s;
  80. `;
  81. container.appendChild(textarea);
  82.  
  83. function createButton(text, bgColor, hoverColor, onClick) {
  84. const button = document.createElement('button');
  85. button.textContent = text;
  86. button.style.cssText = `
  87. width: auto;
  88. padding: 8px 16px;
  89. margin: 8px;
  90. border: none;
  91. border-radius: 6px;
  92. background: ${bgColor};
  93. color: #fff;
  94. font-size: 14px;
  95. cursor: pointer;
  96. transition: 0.3s;
  97. `;
  98. button.addEventListener('mouseenter', () => button.style.background = hoverColor);
  99. button.addEventListener('mouseleave', () => button.style.background = bgColor);
  100. button.addEventListener('click', onClick);
  101. return button;
  102. }
  103.  
  104. // Copy Links Button
  105. const copyButton = createButton('Copy Links', '#007bff', '#0056b3', () => {
  106. navigator.clipboard.writeText(textarea.value).then(() => {
  107. copyButton.textContent = 'Copied!';
  108. setTimeout(() => copyButton.textContent = 'Copy Links', 2000);
  109. });
  110. });
  111. container.appendChild(copyButton);
  112.  
  113. // Open All Links Button (asks permission only once)
  114. const openAllButton = createButton('Open All', '#28a745', '#218838', () => {
  115. if (!hasPermission) {
  116. if (confirm('Are you sure you want to open all links in new tabs?')) {
  117. hasPermission = true;
  118. localStorage.setItem('gofile_open_permission', 'true');
  119. } else {
  120. return;
  121. }
  122. }
  123. links.forEach(link => window.open(link, '_blank'));
  124. });
  125. container.appendChild(openAllButton);
  126.  
  127. // Close Button
  128. const closeButton = createButton('Close', '#dc3545', '#a71d2a', () => document.body.removeChild(container));
  129. container.appendChild(closeButton);
  130.  
  131. // "Powered by GameDrive.Org" Footer
  132. const footer = document.createElement('p');
  133. footer.textContent = 'Powered by GameDrive.Org';
  134. footer.style.cssText = `
  135. font-size: 12px;
  136. margin-top: 12px;
  137. color: #ffffff;
  138. `;
  139. container.appendChild(footer);
  140.  
  141. document.body.appendChild(container);
  142. }
  143. })();

QingJ © 2025

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