eruda icon indicating copy to clipboard operation
eruda copied to clipboard

Can we use this on any page from a mobile device?

Open julkhami opened this issue 3 years ago • 4 comments

I wanted to inspect a certain web page for a certain authorisation token, on my phone. Is this possible with Eruda or is it just for web pages you are an author of yourself so you can put the JavaScript lines in?

julkhami avatar Oct 10 '21 12:10 julkhami

I was able to run it on chrome for android with this small script javascript:(function(){ let s = document.createElement('script'); s.src="//cdn.jsdelivr.net/npm/eruda"; document.body.appendChild(s);s.onload = function() { eruda.init() } })(); (you paste this to url bar) Firefox doesn't execute it but tries googling instead 😑 probably because it contains spaces, but even without them the javascript: prefix doesnt seem to work on firefox for android, maybe just for me. However there's an addon MobiDevTools which implements eruda (its possible to use addons on android, there are many articles on google)

Madghostek avatar Jan 02 '22 00:01 Madghostek

If you just paste the link to the address bar, most browsers will strip the javascript: part (as a kind of protection). If you type it back manually, it should work.

If you use this frequently, you can also create a bookmarklet from it.

fzs111 avatar Jan 24 '22 07:01 fzs111

I've made a small script which injects Eruda to websites on Android in the VPN layer, so it works in Chrome, Firefox, or on websites with Content Security Policy set - feel free to check it out here: https://github.com/leohku/andure

leohku avatar Feb 04 '22 03:02 leohku

I've made a script to work with via browser (a very lightweight browser) here is the script https://github.com/qxb3/eiv you can find the instruction on how to use it on readme

qxb3 avatar Apr 29 '22 11:04 qxb3

Just use the bookmark trick, works all the way

Make a random bookmark Paste the script as url on the bookmark, on search bar type the title of that bookmark and HIT IT.

WebLeach avatar Dec 15 '22 16:12 WebLeach

Just use the bookmark trick, works all the way

Make a random bookmark Paste the script as url on the bookmark, on search bar type the title of that bookmark and HIT IT.

that is kinda pain in the ass to do everytime tho

qxb3 avatar Jan 28 '23 07:01 qxb3

that is kinda pain in the ass to do everytime tho

Remember: something is better than nothing at all

RaSan147 avatar Jan 28 '23 13:01 RaSan147