Via icon indicating copy to clipboard operation
Via copied to clipboard

[Feature Request] Add support for userscripts

Open kyoyacchi opened this issue 2 years ago • 8 comments

I want to use some userscripts instead of that scripts thing. Is it possible?

kyoyacchi avatar Jun 23 '22 13:06 kyoyacchi

Technically, you're asking for greasyfork / tampermonkey integration.

ghost avatar Jul 05 '22 15:07 ghost

Technically, you're asking for greasyfork / tampermonkey integration.

idk, i guess so

kyoyacchi avatar Jul 05 '22 15:07 kyoyacchi

I'm puzzled. This exists!

In Settings > Scripts Click '+' Under "// Your script here" Type "alert ('Hello');" Save Reload a Web page ...

EricDru avatar Sep 23 '22 11:09 EricDru

I want to use some userscripts instead of that scripts thing. Is it possible?

I'm puzzled. This exists!

In Settings > Scripts Click '+' Under "// Your script here" Type "alert ('Hello');" Save Reload a Web page ...

kyoyacchi avatar Sep 23 '22 12:09 kyoyacchi

Oh, do you mean "that scripts thing" is not the same as greasyfork / tampermonkey / grease monkey / violentmonkey integration?

It looks the same to me, just not an extension, but built-in ...

If the script from elsewhere doesn't work, that''s another matter. Javascript / ecmascript is pretty standard, and the DOM is presumably same as Chrome, since it is WebView, no?

EricDru avatar Sep 23 '22 12:09 EricDru

No, i meant exactly as them, but doesn't work when i add userscript to it

kyoyacchi avatar Sep 23 '22 12:09 kyoyacchi

I believe there are some things that are controlled by Android, not by the browser, unlike a desktop OS that leaves more control to the browser.

'Context menus' are one example ...

Browsers that are trying to support extensions (Kiwi, Yandex) find that to be difficult to overcome.

Unless Via is going to also try to support everything that desktop browser extensions can do, I doubt if the UserScript system will.

EricDru avatar Sep 23 '22 14:09 EricDru

Does the script you want to use work in other browsers?

EricDru avatar Sep 23 '22 15:09 EricDru

User scripts are currently supported.

tuyafeng avatar Nov 23 '22 09:11 tuyafeng