hockeystop

joined 1 week ago
[–] hockeystop@lemmy.world 2 points 6 days ago

I found the root cause and have resolved it. The site was blacklisted by my ISP and Nord VPN as well. Once I turned off Nord VPN site blocker it worked right away. The domain perchance.org has been blacklisted.

[–] hockeystop@lemmy.world 1 points 6 days ago

It affects Firefox, Chrome and Edge. Opera did not work for me. Perhaps the DNS filter is key

[–] hockeystop@lemmy.world 1 points 1 week ago* (last edited 1 week ago)

I noticed your ISP blacklist comment, so I tried with and without VPN and that did not work either. It could not be ISP in my case, because I have no issues when using chrome on my iphone. The problem is consistent on all browsers in Windows 11. I would not be surprised if Microsoft Did something on the OS level to cause issue. The problem seems to have originated around the time of their most recent update.

[–] hockeystop@lemmy.world 1 points 1 week ago

Here is the error on the page when it tries to load:

An error has occurred somewhere in your code (in lists or HTML): There's a script tag in your HTML editor that's throwing this error: TypeError: Cannot read properties of undefined (reading 'addHook'). Here's the line of code (or one near it) that seems to be causing the error:

DOMPurify.addHook('uponSanitizeAttribute', function (node, data) { And here's the surrounding code:

let domPurifyOptions = { ADD_TAGS: ['iframe'], FORBID_TAGS: ['style'], ADD_ATTR: ['onclick'], // WARNING: I'm using a hook (below) to make this safe. Be careful when editing this stuff. }; DOMPurify.addHook('uponSanitizeAttribute', function (node, data) { if(data.attrName === "onclick") { node.dataset.onClickCode = data.attrValue; data.attrValue = "window.runCodeInCustomCodeIframe(this.dataset.onClickCode)"; } The error may be near line number 563 of that script tag.

(Note that any line numbers and/or snippets given above could be inaccurate e.g. due to an unclosed bracket much earlier in your script, or something like that.)

An error has occurred somewhere in your code (in lists or HTML): Note: You may need to open your browser console to see the full error message. The keyboard shortcut is Ctrl+Shift+J or Cmd+Option+J if using the Chrome browser, and you should see a red error message if you scroll down. Then follow this screenshot. TypeError: Cannot read properties of undefined (reading 'addHook') at :565:13 If you need help with errors, please post a question to the perchance community along with a link to your generator and someone will take a look at it for you :)

[–] hockeystop@lemmy.world 1 points 1 week ago (1 children)

I have this same problem. Consistent with all of my browser in Windows 11 Operating System. Chrome, Firefox and Microsoft Edge. All have this same error. It only seems to work on IOS on my Iphone. No errors there at all. This may be due to a recent Microsoft Update.