Skip to content

Commit f47cc18

Browse files
committed
update: disable MAUL reauth until future fix
1 parent 9294c83 commit f47cc18

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

src/EGO Forum Enhancement.ts

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -651,21 +651,22 @@ function setupForumsConfig() {
651651
* Automatically authenthicates with MAUL in the background if it's been a while since the last authenthication
652652
*/
653653
function autoMAULAuth() {
654-
if (!GM_config.get("maul-reauth-enable")) return;
655-
const lastAuth = GM_getValue("lastMAULAuth", 0);
656-
if (Date.now() - lastAuth < (GM_config.get("maul-reauth") as number))
657-
return;
658-
const authLink = document.querySelector(
659-
'a.p-navEl-link[href^="/maul"]',
660-
) as HTMLAnchorElement;
661-
if (!authLink) return;
662-
GM_xmlhttpRequest({
663-
method: "GET",
664-
url: authLink.href,
665-
onload: function () {
666-
GM_setValue("lastMAULAuth", Date.now());
667-
},
668-
});
654+
console.warn("MAUL reauth feature is currently disabled due to issues with the feature. Your config settings have been preserved, and the feature will return once fixed.");
655+
// if (!GM_config.get("maul-reauth-enable")) return;
656+
// const lastAuth = GM_getValue("lastMAULAuth", 0);
657+
// if (Date.now() - lastAuth < (GM_config.get("maul-reauth") as number))
658+
// return;
659+
// const authLink = document.querySelector(
660+
// 'a.p-navEl-link[href^="/maul"]',
661+
// ) as HTMLAnchorElement;
662+
// if (!authLink) return;
663+
// GM_xmlhttpRequest({
664+
// method: "GET",
665+
// url: authLink.href,
666+
// onload: function () {
667+
// GM_setValue("lastMAULAuth", Date.now());
668+
// },
669+
// });
669670
}
670671

671672
/**

0 commit comments

Comments
 (0)