Thread Media Viewer

Comfy media browser and viewer for various discussion boards.

< Feedback on Thread Media Viewer

Question/comment

§
Posted: 2020-08-17

I'm having trouble to get this to work with violentmonkey and chromium. Pressing "~" or "`" doesn't bring up any menu, and the console shows this:

MediaBrowser: url matched /boards\.4chan(nel)?.org\/\w+\/thread\/\S+/i
DevTools failed to load SourceMap: Could not load content for chrome-extension://jinjaccalgkegednnccohejagnlnfdag/hooks.umd.js.map: HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME
Thread Media Viewer.user.js:4 Uncaught TypeError: Illegal invocation
    at u (Thread Media Viewer.user.js:4)
qimashoAuthor
§
Posted: 2020-08-18

I looked at it and the error is coming from dependency (preact/hooks) inlined by Violentmonkey. I don't have any such issues in Tampermonkey, so it has to be something with Violentmonkey.

I'm not even doing anything weird, just a basic @require rules:

// @require     https://cdn.jsdelivr.net/npm/preact@10.4.6/dist/preact.min.js
// @require     https://cdn.jsdelivr.net/npm/preact@10.4.6/hooks/dist/hooks.umd.js

So dunno what else to do here except recommend you try a different userscript manager? :x

qimashoAuthor
§
Posted: 2020-09-13
So this seems to really be Violentmonkey issue, but good news, it'll be fixed in the next version (current RC):

https://github.com/violentmonkey/violentmonkey/issues/1057
§
Posted: 2020-09-13
Thank you for looking into this!
Looking forward to using your script.

Post reply

Sign in to post a reply.