GoFile Bypass

GoFile Link Bypass

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