議論 » Greasy Fork への意見

GM_config lib

§
投稿日: 2021/05/24

Can github link be whitelisted: https://github.com/sizzlemctwizzle/GM_config

I see only outdated version on greasyfork: https://greasyfork.org/libraries/GM_config/20131122

§
投稿日: 2021/05/25

You can use this:

https://cdn.jsdelivr.net/gh/sizzlemctwizzle/GM_config@43fd0fe4de1166f343883511e53546e87840aeaf/gm_config.js

Thx, that works.
How did you got that link? Can it be generated to any GitHub code?

woxxomMod
§
投稿日: 2021/05/25
編集日: 2021/05/25

I've looked at the allowed external URL patterns, then opened jsdeliver.com, and crafted the link per an example. I guess it works for any repo, I didn't verify it in the jsdeliver's documentation though.

§
投稿日: 2021/05/25

So malicious scripts can slip through with this method, if GitHub is considered not safe.

woxxomMod
§
投稿日: 2021/05/25

No. GitHub isn't allowed because it's not CDN.

woxxomMod
§
投稿日: 2021/05/25

There's no difference wrt security because commit hashes change if the code changes.

§
投稿日: 2021/05/25

Oh, yes.

返信を投稿

返信を投稿するにはログインしてください。