我必须在tampermonkey..this中包含所有站点是我必须运行的脚本
// ==UserScript==
// @name Phishing Blockz
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Phishing block based on hyperlinks
// @match http://*/*
// @run-at document-end
var req = new XMLHttpRequest();
req.open('GET', document.location, false);
req.send(null);
var headers = req.status;
var locheader=req.getResponseHeader("Location");
alert(headers);
alert(locheader);我做了什么吗? wrong.please帮助我在所有页面中运行这个用户脚本
发布于 2013-04-03 05:30:49
// @match http://*/*例如,只匹配以http://...开头的地址,而不匹配https://...。
如果您确实需要,可以使用以下命令包含所有地址(包括您可能已保存在硬盘上的本地页面!)..
// @match *://*/*注意:由于TM2.12中潜在的错误或未记录的功能,下面的方法在撰写本文时也有效(因此在未来的版本中很可能会发生变化!!):
// @match *发布于 2018-07-16 19:37:49
// @match *://*/*
这应该能找到所有的URL。使用TamperMonkey/GreaseMonkey
// ==UserScript==
// @name Match Every Site
// @namespace http://tampermonkey.net/
// @version 1.1
// @description I will pop up on every site!!
// @author You
// @match *://*/*
// @grant none
// ==/UserScript==
alert("I am working!")这可能对某些页面上的浏览器扩展很有用:
因此,相应地:*://*/*匹配所有HTTP、HTTPS和WebSocket URL。
发布于 2020-02-19 05:55:17
用@include代替@match可以很好地工作
// ==UserScript==
// @name Phishing Blockz
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description Phishing block based on hyperlinks
// @include *
// @run-at document-end这适用于网络上的所有网站(在TamperMonkey中测试)
https://stackoverflow.com/questions/15475404
复制相似问题