Thread Media Viewer

Comfy media browser and viewer for various discussion boards.

< 腳本Thread Media Viewer的回應

提問/評論

§
發表於: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)
qimasho作者
§
發表於: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/[email protected]/dist/preact.min.js
// @require     https://cdn.jsdelivr.net/npm/[email protected]/hooks/dist/hooks.umd.js

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

qimasho作者
§
發表於: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

§
發表於:2020-09-13

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

發表回覆

登入以回復

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址