Greasy Fork is available in English.

Thread Media Viewer

Comfy media browser and viewer for various discussion boards.

< Σχολιασμός για τον κώδικα Thread Media Viewer

Ερώτηση/σχόλιο

§
Δημοσιεύτηκε: 17/08/2020

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)
qimashoΔημιουργός
§
Δημοσιεύτηκε: 18/08/2020

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

qimashoΔημιουργός
§
Δημοσιεύτηκε: 13/09/2020

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

§
Δημοσιεύτηκε: 13/09/2020

Thank you for looking into this!
Looking forward to using your script.

Δημοσίευση απάντησης

Συνδεθείτε για να δημοσιεύσετε μια απάντηση.