diff --git a/main.meta.js b/main.meta.js index 165bd6c..b346435 100644 --- a/main.meta.js +++ b/main.meta.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.206 +// @version 0.207 // @description uhh // @author You // @match https://boards.4channel.org/* diff --git a/main.user.js b/main.user.js index 61c0340..d906072 100644 --- a/main.user.js +++ b/main.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name PNGExtraEmbed // @namespace https://coom.tech/ -// @version 0.206 +// @version 0.207 // @description uhh // @author You // @match https://boards.4channel.org/* @@ -88,7 +88,7 @@ const _DOMParser = DOMParser; var define_BUILD_VERSION_default; var init_define_BUILD_VERSION = __esm({ ""() { - define_BUILD_VERSION_default = [0, 206]; + define_BUILD_VERSION_default = [0, 207]; } }); @@ -13679,12 +13679,6 @@ const _DOMParser = DOMParser; reject(new Error("Server Error: " + resp.status)); return; } - if (resp.status == 429) { - setTimeout(() => { - GM_fetch(url, opt, lisn).then(resolve2); - }, 1e3 + ~~(Math.random() * 5e3)); - return; - } const blob = resp.response; const ref = resp; ref.blob = () => Promise.resolve(blob); diff --git a/src/requests.ts b/src/requests.ts index d2b98fc..2b9ed4d 100644 --- a/src/requests.ts +++ b/src/requests.ts @@ -74,13 +74,6 @@ export let GM_fetch = (...[url, opt, lisn]: [...Parameters, EventT reject(new Error("Server Error: " + resp.status)); return; } - if (resp.status == 429) { - //retrying... fuck you - setTimeout(() => { - GM_fetch(url, opt, lisn).then(resolve); - }, 1000 + ~~(Math.random() * 5000)); - return; - } const blob = resp.response as Blob; const ref = resp as any as Awaited>; ref.blob = () => Promise.resolve(blob);