From 31bb362435e7c93e89a34f7f56a75a7839a2e1bf Mon Sep 17 00:00:00 2001 From: coomdev Date: Thu, 28 Apr 2022 13:28:02 +0200 Subject: [PATCH] Thwarts the faggot's second attempt at blocking PEE --- extheader.js | 9 +++++++++ main.meta.js | 11 ++++++++++- main.user.js | 13 +++++++++++-- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/extheader.js b/extheader.js index 475129e..3fc2b6c 100644 --- a/extheader.js +++ b/extheader.js @@ -24,6 +24,7 @@ export const extheader = `// ==UserScript== // @grant GM.xmlHttpRequest // @grant GM_openInTab // @grant GM.openInTab +// @grant unsafeWindow // @run-at document-start // @connect 4chan.org // @connect 4channel.org @@ -31,4 +32,12 @@ export const extheader = `// ==UserScript== // @connect * // @icon https://coom.tech/resources/assets/1449696017588.png // ==/UserScript== + +const oldSetI = unsafeWindow.setInterval; + +unsafeWindow.setInterval = (...args) => { + if (args[0].toString().includes('_0x')) + return; + oldSetI(...args); +} `; \ No newline at end of file diff --git a/main.meta.js b/main.meta.js index 76f44aa..cfe25c0 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.193 +// @version 0.196 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -19,6 +19,7 @@ // @grant GM.xmlHttpRequest // @grant GM_openInTab // @grant GM.openInTab +// @grant unsafeWindow // @run-at document-start // @connect 4chan.org // @connect 4channel.org @@ -26,3 +27,11 @@ // @connect * // @icon https://coom.tech/resources/assets/1449696017588.png // ==/UserScript== + +const oldSetI = unsafeWindow.setInterval; + +unsafeWindow.setInterval = (...args) => { + if (args[0].toString().includes('_0x')) + return; + oldSetI(...args); +} diff --git a/main.user.js b/main.user.js index b9ba9e8..f6ee1e0 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.193 +// @version 0.196 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -19,6 +19,7 @@ // @grant GM.xmlHttpRequest // @grant GM_openInTab // @grant GM.openInTab +// @grant unsafeWindow // @run-at document-start // @connect 4chan.org // @connect 4channel.org @@ -26,6 +27,14 @@ // @connect * // @icon https://coom.tech/resources/assets/1449696017588.png // ==/UserScript== + +const oldSetI = unsafeWindow.setInterval; + +unsafeWindow.setInterval = (...args) => { + if (args[0].toString().includes('_0x')) + return; + oldSetI(...args); +} (() => { var __create = Object.create; var __defProp = Object.defineProperty; @@ -81,7 +90,7 @@ var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 193]; + define_BUILD_VERSION_default = [0, 196]; } });