Tag Info

Hot answers tagged

5

Solution 1. Use Tampermonkey. Tampermonkey is more popular as an extension for Chrome, but it is also available as a standalone Android app. It functions as a lightweight browser, and allows you to manage and automatically run user scripts. Unfortunately it doesn't have many of the features found on other popular browsers, but it does support the ...


3

The Javascript engine in Android's Browser/WebView can be either JavaScriptCore (lower end phones) or V8 (higher end phones). Chrome also uses V8. Both engines are written in C++. Javascript is never compiled to Java bytecode, instead it is interpreted and/or JIT compiled into ARM bytecode. My guess on why V8 on PC is much faster than V8 on Android is ...


3

You'll have to copy and paste. I don't know why the long click doesn't work, but I assume because the url doesn't start with "http". I've found the easiest way to create bookmarklets is to do it on the PC and then import the bookmarks, or by copying the text of the js url to a text file, emailing or dropboxing it to my phone and then copying & ...


3

Use OilCan - "Greasemonkey on steroids for Android".


2

Finally got it to work and it wasn't complicated at all. Simply create a bookmark and paste the javascript into the URL field. I've tried it on this bookmarklet that does a google definition search: javascript: s = (window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text); if (s ...


1

Directly on the device? I don't think so. If you have a computer running chrome, and a usb cord for your phone, then you can use Chrome's remote debugger to access a web console on your computer that can inspect pages open in chrome, and any in-app webviews that have debugging enabled. Basically, you just enable the developer options and remote debugging on ...


1

Bad news it seems. Bug report on Google code The most relevant post is this: Yes. It is as design. "autoplay" is disabled for Chrome for Android It seems that Android 4+ changed the requirements for the play() method to require user interaction. Article on this issue It's worth nothing that many comments refer to getting it to work with a ...


1

As I mentioned in the comments the Twitter app doesn't seen to have an in-app browser so I'm using the Reddit Is Fun app instead since I know it does. I think that all in-app browsing uses a WebView so it should be the same across all apps. The WebView and Chrome both use the WebKit engine but Chrome seems to use a more up-to-date one. I tried out SunSpider ...


1

If the developer do not give you access to the (Web)Settings of the WebView, you will not be able to disable JavaScript in the WebView.


1

This is to prevent page ads fron draining your battery when you're not using the phone (for example), page execution is stopped. As for Opera, I believe they have their own JavaScript engine, so maybe it's not standards-compliant. Or maybe it doesn't interface well with the Android sound system. Or maybe the page's JavaScript isn't standards-compliant.


1

Use either the Habit Browser or Slepnir Browser apps. They both support Userscripts. I had to tweak my scripts slightly to get them working (they handle events differently) but they both work really well.



Only top voted, non community-wiki answers of a minimum length are eligible