Quatrix 对 RefControl 发表的评价
评分4星,满分5星
I made a simple change to make this work for "from" sites instead of "to" sites (but not both). For example, I have images.google.com set to "forge" and "normal" for everything else. Now my RefControl only changes the referrer when opening a link from Google Images to another site.
Load \extensions\{455D905A-D37C-4643-A9E2-F6FEFAA0424A}\components\refcontrolComp.js into a text editor and find the onModifyRequest() function. You'll find a 'for' loop "for (var s = oHttpChannel.URI.host; s != ""; s = s.replace(/^.*?(\.|$)/, ""))". Just change oHttpChannel.URI.host to oHttpChannel.referrer.host, save, and restart Firefox. The list of hosts in your RefControl options now apply to the referring (from) site instead of the site being linked to.
If you want to get technical, oHttpChannel.referrer is sometimes null, but it won't hurt anything and you don't need to worry about it.
请选择一个原因:
创建您自已的收藏集,您必须一个 Mozilla 附加组件账户。
或者登录您已有的账户