System Information:
macOS or iOS version: Both
Userscripts version: Latest
Safari version: Latest
Is this issue related to script injection? Not really
Did the test script (pasted above) successfully run on your machine? Yes
This is more of a feature request to improve feature parity with other script managers (such as TM or VM).
@icon property can be used in Metadata Block but cannot be accessed via GM_info.script.icon.
From my understanding, it is currently not possible to access this value (other than perhaps parsing scriptMetaStr). [1][2]
For reference, I opened identical report in VM repo ~2 years ago: violentmonkey/violentmonkey#1031
[1]
|
var scriptObject:[String: Any] = [ |
|
"description": description, |
|
"excludes": excludes, |
|
"exclude-match": excludeMatches, |
|
"filename": filename, |
|
"grants": grants, |
|
"includes": includes, |
|
"inject-into": injectInto, |
|
"matches": matches, |
|
"name": name, |
|
"noframes": noframes, |
|
"namespace": "", |
|
"resources": "", |
|
"require": requires, |
|
"run-at": runAt, |
|
"version": version |
|
] |
[2]
https://github.com/quoid/userscripts#api
System Information:
This is more of a feature request to improve feature parity with other script managers (such as TM or VM).
@iconproperty can be used in Metadata Block but cannot be accessed viaGM_info.script.icon.From my understanding, it is currently not possible to access this value (other than perhaps parsing
scriptMetaStr). [1][2]For reference, I opened identical report in VM repo ~2 years ago: violentmonkey/violentmonkey#1031
[1]
userscripts/extension/Userscripts Extension/Functions.swift
Lines 1302 to 1318 in 7109430
[2] https://github.com/quoid/userscripts#api