让我先说说我的问题:

The solution i was thinking of: I know there is a way to create some javascript function that you put behind a google bookmark so that when you are on the page, you just click that bookmark, and it will do some things.

I was wondering if anyone used (or created) something like this. If you can make this yourself, how do you start with it? And can you use jquery?

如果有可能创建这个,我还想知道,当你点击时,是否有可能显示一个弹出窗口来询问一些参数,这样我就不需要填写同样的内容3,4次

推荐答案

你可以用一个bookmarklet.bookmarklet是一个书签,其URI以伪协议javascript:开头,后跟URI编码的JavaScript代码.当您触发书签时,浏览器将在当前页面的上下文中运行代码.所以你可以转到那个页面,然后使用书签来填写你的标准信息,然后就可以了.

For example, here's a bookmarklet that, when run, will look for an element with the id someElement on the page and, if found, assign "some value" to its value property:

javascript:(function(){var d=document,e=d.getElementById("someElement");e.value="some value";})();

Jquery相关问答推荐

使用jquery将外部代码插入div

如何使用 jQuery 的 drop 事件上传从桌面拖动的文件?

Jquery如何通过数组中的属性查找对象

在 Bootstrap 3 中向工具提示添加换行符

如何滚动到jQuery中的元素?

输入类型=文件的jQuery更改方法

纯css关闭按钮

如何计算具有相同类的元素数量?

Codemirror 编辑器在单击之前不会加载内容

将 CSS 应用于 jQuery 对话框按钮

将每 3 个 div 包装在一个 div 中

自动完成将值而不是标签应用于文本框

一组元素中具有最大高度的元素

Rails 5:如何将 $(document).ready() 与 turbo-links 一起使用

.apply jQuery 函数是什么?

父母的jQuery父母

在未实现接口 FormData 的对象上调用附加

你能在不影响历史的情况下使用哈希导航吗?

jquery追加到列表的前面/顶部

jQuery UI 选项卡 - 如何获取当前选定的选项卡索引