admin管理员组文章数量:1287593
I would like to inject an external javascript code into a certain webpage in a mobile phone browser such as chrome or opera mini. On puters, we can do this directly in the console or through extensions such as Scripty. Unfortunately, phone browsers don't show consoles nor do they have extensions. Please how can I achieve this?
I would like to inject an external javascript code into a certain webpage in a mobile phone browser such as chrome or opera mini. On puters, we can do this directly in the console or through extensions such as Scripty. Unfortunately, phone browsers don't show consoles nor do they have extensions. Please how can I achieve this?
Share Improve this question asked Dec 26, 2021 at 11:07 Mich25educMich25educ 3333 silver badges17 bronze badges3 Answers
Reset to default 5You can use eruda. It's a console for mobile browsers. It also has many plugins such as eruda-touches which visualizes all current touches and their positions. Personally, I made a bookmark using chrome browser on my phone to implement this console directly in any page when i search for its name. Watch this youtube video for more details.
You can use the address-bar to run javascript in that page.
(Tested in Chrome)
Like this:
Since all the codes will be in one line, make sure you use semicolons properly.
If you are using android, then you can use chrome inspect to access console on phone browser using a puter.
- First you should connect your phone to your puter via USB and authorize it.
- In Chrome on your puter open the following link chrome://inspect
- There you can see opened tabs on your mobile device, and open their console.
本文标签: How to inject external javascript code in phone browserStack Overflow
版权声明:本文标题:How to inject external javascript code in phone browser - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741309585a2371572.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论