首页 | 最近更改 | 编辑本页 | 较早版本

可打印版 | 免责声明

Not logged in
登录 | 帮助
 

Firefox:Dive Into Greasemonkey/4.1. Executing a user script on a domain and all its subdomains

Mozilla中文Wiki

您的位置:Dive Into Greasemonkey公用模式在一个域名和它所有的子域名上执行用户脚本

4.1. 在一个域名和它所有的子域名上执行用户脚本

对于许多网站,无论您是否包含 www. 前缀,访问网站的效果都是等同的。如果您要为这样的站点写用户脚本,您需要确保在脚本中包含这两种域名。

Image:Permalink.gif 示例: 用来匹配域名和它所有子域名的 metadata 标签

// ==UserScript==
// @include http://example.com/*
// @include http://*.example.com/*
// ==/UserScript==
← 公用模式
测试一个 Greasemonkey 函数是否有效 →

取自"http://wiki.mozcn.org/index.php/Firefox:Dive_Into_Greasemonkey/4.1._Executing_a_user_script_on_a_domain_and_all_its_subdomains"

本页面已经被浏览2121次。 最后更改14:26 2006年5月27日. 本站内容在创作共用署名-非商业用途-保持一致条款下发布。


[首页]
首页
最近更改
随机页面
新闻动态

编辑本页
讨论本页
较早版本
链入页面
链出更改

特殊页面
错误报告