Is it possible to insert userscripts directly into Webview-based app's data directory? (root based) #163
Replies: 3 comments 8 replies
-
Currently, userscripts are stored in sqlite database, i.e., the Could you open the ChromeXt front-end via Eruda? I may change front-end so that you can jump to valid userscript urls. |
Beta Was this translation helpful? Give feedback.
-
@JingMatrix I guess I'll need to make a copy of But not sure if it can load when opened in the other webview app.
Can you guide me how to do that? I'm not sure if there is any option to open ChromeXt front-end with Eruda.
Yes, so I think the only way is to move that userscripts file directly to the app's data folder (internal storage or sdcard) because the application has access to the filesytem granted to themselves |
Beta Was this translation helpful? Give feedback.
-
To open the front-end, try what I said in this link: #161 (comment) Your scripts can definitely load once you edit the sqlite file properly. My suggestion was that in the front-end, I would made an input box, through which you can jump to any url; this will then allows to intall scripts. |
Beta Was this translation helpful? Give feedback.
-
I have some Webview-based applications, and I can successfully insert the Eruda console into that application via ChromeXt hooks.
Because there is no way to navigate to the
user.js
files from the outside, I tried to find a way to loaduser.js
files from the Eruda console but it also failed because the application did not declare access rights to the filesystem so it could not call file explorer.Is there a way to load Userscripts directly into the application's Webview data directory without having to go through the Web interface?
I noticed that in the App's data - webview dir folder,
Eruda.js
is downloaded in the"files/"
folder, while for Chrome, the userscripts are loaded into the"databases/"
folder with two files"userscript"
and"userscript -journal"
with sqlite format.Beta Was this translation helpful? Give feedback.
All reactions