Skip to content

GM_getResourceURL is not base64url #1436

@polyproline

Description

@polyproline

What is the problem?

GM_getResourceURL is not base64url ,is bloburl. It isn`t excepted!

In violentmonkey console.log(GM_getResourceURL("opencc_wasm")) is
In firefox:
blob:https://visit.domain/7b9cd7fb-af23-4c1b-9a93-47cc8b8ca96d
In brave:
blob:https://www.baidu.com/631953e4-ced4-4a51-b9a5-014afc9fe2d7
In tampermonkey, it is
data:application;base64,AGFzbQEAAAABeh.........

How to reproduce it?

  1. Install script https://greasyfork.org/en/scripts/413703-opencc-rust
  2. Click the violentmonkey menu botton in the opencc-rust "load"
  3. The web context should be convert from Traditional Chinese to Simplified Chinese, but don`t work

What is the expected result?

Load wasm
The web context should be convert from Traditional Chinese to Simplified Chinese
The "中文转换" and "事件监听" button should appear in the violentmonkey menu

What is the actual result?

The code GM_getResourceURL("opencc_wasm") don`t return base64url, it returtn blob url

Environment

  • Browser:firefrox 95.0,brave 1.32.115
  • Violentmonkey version: v2.13.0
  • OS:ubuntu 20.04LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions