最近Flickr 启用了新的存储服务器farm4.static.flickr.com,使用Access Flickr 插件发现不能正常显示,是因为这个插件里没有定义farm4 的真实地址造成的,修改下就可以了。

这里是Joe 修改好的Firefox 插件文件下载
[来源]

具体DIY 修改方法如下:

1.解压access_flickr!-1.8-fx-win.xpi插件文件到目录;

2.打开content目录下的overlay.js文件修改;

3.在
var exchangeSource = new Array(
/^([^.]*.?)farm3.static.flickr.com$/i,
/^([^.]*.?)farm2.static.flickr.com$/i,
/^([^.]*.?)farm1.static.flickr.com$/i,
/^([^.]*.?)farm(d).static.flickr.com$/i, //Some heuristic idea. May help for the next image farm, and may not help at the same probability!
/^([^.]*.?)(downloads|code).flickr.com$/i,
/^([^.]*.?)static.flickr.com$/i,
/^([^.]*.?)blog.flickr.com$/i,
/^([^.]*.?)flickr.com$/i
);

第二段中加入/^([^.]*.?)farm4.static.flickr.com$/i,

4.在
var exchangeDest = new Array(
‘farm3.static.flickr.yahoo3.akadns.net’,
‘farm2.static.flickr.yahoo3.akadns.net’,
‘farm1.static.flickr.yahoo8.akadns.net’,
‘farm$2.static.flickr.yahoo3.akadns.net’, //?
‘admin2.flickr.mud.yahoo.com’,
‘farm1.static.flickr.yahoo8.akadns.net’,
‘blog.flickr.com’,
‘www.flickr.mud.yahoo.com’
);
第二段中加入’farm4.static.flickr.yahoo11.akadns.net’,

5.将解压目录里的所有文件打包为zip格式,再修改后缀名zip为xpi,安装即可正常浏览flickr了~:)

Advertisements