IGG Games Bypass

Bypasses the 6 second countdown that bluemediafiles has.

  1. // ==UserScript==
  2. // @name IGG Games Bypass
  3. // @namespace https://github.com/ArjixWasTaken/my-userscripts
  4. // @version 0.6
  5. // @author Arjix
  6. // @match *://*/*
  7. // @icon https://www.google.com/s2/favicons?sz=64&domain=bluemediafile.site
  8. // @grant none
  9. // @run-at document-start
  10. // @description Bypasses the 6 second countdown that bluemediafiles has.
  11. // ==/UserScript==
  12.  
  13. /* global nut */
  14.  
  15. const { referrer } = document;
  16. try {
  17. const { hostname } = new URL(referrer);
  18. if (hostname !== "igg-games.com") return;
  19. } catch {
  20. return;
  21. }
  22.  
  23. const { hostname } = window.location;
  24. if (hostname === "igg-games.com") return;
  25. if (!["blue", "media", "files", "download"].some(str => hostname.includes(str))) return;
  26.  
  27. console.log('Detected blue media files!');
  28.  
  29.  
  30. new MutationObserver(async (mutations, observer) => {
  31. for (const mutation of mutations) {
  32. for (const child of mutation.addedNodes || []) {
  33. if (child.tagName === "SCRIPT" && child.matches("body > *")) {
  34. const src = child.innerHTML;
  35.  
  36. if (/Goroi_n_Create_Button\(['"]/.test(src)) {
  37. child.innerHTML = src
  38. .replace("var i = 5;", "var i = 0;")
  39. .replace(/}, \d+\);/, "}, 1);")
  40. .replace("document.getElementById('dem').innerHTML = i;", "")
  41. .replace(/jQuery.*?;/, "");
  42. } else if (/var Time_Start = (.*?);/.test(src)) {
  43. child.innerHTML = src.replace(
  44. /var Time_Start = (.*?);/,
  45. (m, t) => `var Time_Start = ${t}-(10*1000)`
  46. ).replace('return;', '');
  47. } else {
  48. child.remove();
  49. }
  50. }
  51.  
  52. if (child.tagName === "FORM") {
  53. child.style.display = "none";
  54. }
  55.  
  56. if (
  57. child.id?.startsWith("ads-") ||
  58. child.id === "anti-adblock" ||
  59. child?.nodeName === "#comment"
  60. )
  61. child.remove();
  62. else if (child?.matches?.(".item")) child.remove();
  63. else if (
  64. child.tagName === "SPAN" &&
  65. child.innerText.includes("Thank you for your visit")
  66. )
  67. child.innerText =
  68. "Thank you for your visit, redirecting to the file host...";
  69. else if (child.tagName === "IMG" && child.id === "top-image")
  70. child.src =
  71. "https://media.discordapp.net/stickers/1039992459209490513.png";
  72. }
  73.  
  74. if (
  75. mutation.type === "attributes" &&
  76. mutation.target.tagName === "INPUT" &&
  77. mutation.target.id === "url" &&
  78. mutation.attributeName === "value" &&
  79. mutation.target.value
  80. ) {
  81. nut.click();
  82. }
  83. }
  84. }).observe(document, { subtree: true, childList: true, attributes: true });