简体   繁体   English

从任何地方执行JS脚本?

[英]Execute JS script from anywhere?

I am working on a script Javascript (whatever it does) and I need to run it directly from anypage i am surfing on, maybe with a button on my bookmarks, or an extension. 我正在使用Javascript脚本(无论它做什么),我都需要直接从我正在浏览的任何页面上运行它,可能需要使用书签上的按钮或扩展名。

I have absolutly no idea on how should I do that, I tried to search a bit but no idea where to begin. 我完全不知道该怎么做,我尝试了一下,但不知道从哪里开始。 That's why I'm asking here for a bit of an help ! 这就是为什么我要在这里寻求帮助! :D :D

It would be lovely from anyone of you to help me through ! 你们当中的任何一个都可以帮助我,这真是太好了!

You can have a look at web browser extensions, which allow executing of JavaScript code on web sites, where you enabled it: 您可以看一下Web浏览器扩展,它允许在启用了JavaScript的网站上执行JavaScript代码:

You can find examples of such scripts at user script hosting web sites, for example: 您可以在用户脚本托管网站上找到此类脚本的示例,例如:

You can also register and maintain your script there, so that the others can find it and install it from there. 您也可以在此处注册和维护脚本,以便其他人可以在此处找到并安装脚本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM