Writing a version of Chrome for Android that will run user scripts

178 views
Skip to first unread message

Tom Ryan

unread,
Jun 3, 2015, 6:52:43 PM6/3/15
to chromium...@chromium.org
Any ideas where I might begin with this?  I've got a user script for filtering forum threads that I use on a heavily-trafficked forum website that's really useful.  It's got cloud saving so it will keep your filter settings up to date on all browsers/machines where you've got it installed.  I'd really like to have this on mobile browsing as well, but there doesn't seem to be a good Android browsing solution that lets you use user scripts.  Tampermonkey, a user script extension provider, actually has their own browser on Android that will let you run user scripts but it seems to be slow and buggy.  So I thought maybe I could write my own.

I've been looking through the Chromium source but I really just have no idea where to begin with something like this.  I really don't want to interrupt any of the primary processes of the browser, I just want to add the ability to inject Javascript into a page I'm browsing like user script solutions do on a desktop and then have it parsed like normal.

PhistucK

unread,
Jun 4, 2015, 1:28:04 AM6/4/15
to jetm...@gmail.com, Chromium-discuss
Since Android WebView allows such stuff (and has an API for it), I believe, you better start with searching for the name of that API using cs.chromium.org and following its leads.


PhistucK

On Thu, Jun 4, 2015 at 1:52 AM, Tom Ryan <jetm...@gmail.com> wrote:
Any ideas where I might begin with this?  I've got a user script for filtering forum threads that I use on a heavily-trafficked forum website that's really useful.  It's got cloud saving so it will keep your filter settings up to date on all browsers/machines where you've got it installed.  I'd really like to have this on mobile browsing as well, but there doesn't seem to be a good Android browsing solution that lets you use user scripts.  Tampermonkey, a user script extension provider, actually has their own browser on Android that will let you run user scripts but it seems to be slow and buggy.  So I thought maybe I could write my own.

I've been looking through the Chromium source but I really just have no idea where to begin with something like this.  I really don't want to interrupt any of the primary processes of the browser, I just want to add the ability to inject Javascript into a page I'm browsing like user script solutions do on a desktop and then have it parsed like normal.

--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.

Tom Ryan

unread,
Oct 27, 2015, 1:09:40 AM10/27/15
to Chromium-discuss, jetm...@gmail.com
I haven't made any headway on this.  Does anyone have more specific advice?
Reply all
Reply to author
Forward
0 new messages