Closed GoogleCodeExporter closed 9 years ago
嗯,谢谢关注!
以前用webnavigation本身就是一个错误,而且效率低下,主要是�
��时没有发现webrequest。其实webrequest是相当新的——几天前我�
��chrome
17测试这个插件,发现不支持(当然,是好早之前装的dev分支
了)。
关于修改http头,我会考虑一下。
最近在忙进web
store的事情,发现太复杂了。如果有什么点子,欢迎和我分享
!
Original comment by CyrilF...@gmail.com
on 26 Feb 2012 at 1:42
* http头的事情我还得再想想;
* 已经进入CWS了。
Original comment by CyrilF...@gmail.com
on 27 Feb 2012 at 4:33
http头的事你可以参看下http请求头修改这个扩展,作者是有个
最新,后来下架了。。他那个本来只是改ua的,条件对referer��
�url,还有@delete删除。。
这里最好也放下载吧。。google商店的链接经常访问困难,要��
�。。
Original comment by nowin...@gmail.com
on 27 Feb 2012 at 2:45
cws主要是方便更新,原来不知道cws还有访问上的问题,我会��
�下载挂回去的。
Original comment by CyrilF...@gmail.com
on 29 Feb 2012 at 4:51
已经增加了对http请求头处理的支持,使用方法是:
1. 选择substitution的类型为header (beta);
2.
在substitution中填入头名称(如果有多个,用竖线"|"分隔),��
�可以在头名称前加一横线"-"表示删除;
3.
在replacement中填入头相应的值(如果有多个,也用竖线分隔,
并且顺序要对应),对于要删除的头,值就无所谓了。
注意:测试之类的功能目前均不适用。
这是我能想到的与扩展现有功能最匹配的一种方案了,我测��
�了一下可以用的。
测试方法是取消background.js倒数第9行的注释,然后在扩展设置
里点一下Inspect active views:
/html/background.html,继而打开console。被处理过的URL的头会被记�
��下来(输出会比较多)。
不知你认为如何。
Original comment by CyrilF...@gmail.com
on 1 Mar 2012 at 11:01
补充一下使用方法:
例1. 设置UserAgent为Mozilla/6.0
Substitution: User-Agent; Replacement: Mozilla/6.0
例2. 去除Referer
Substitution: -Referer; Replacement:
例3. 同时实现上述两例
Substitution: User-Agent|-Referer; Replacement: Mozilla/6.0|
Original comment by CyrilF...@gmail.com
on 1 Mar 2012 at 11:27
刚忘了可以增加头了,会在2.2.14中加上
Original comment by CyrilF...@gmail.com
on 1 Mar 2012 at 2:00
已加上增加头的功能,方法为在头名称前加上"+"。另外增加��
�标准http请求头的输入提示功能,不用再自己敲了。
Original comment by CyrilF...@gmail.com
on 3 Mar 2012 at 8:31
不错我试试看。。你太有时间了。。
Original comment by nowin...@gmail.com
on 3 Mar 2012 at 9:02
扩展名字可以改改了。。
Original comment by nowin...@gmail.com
on 3 Mar 2012 at 9:03
加个按钮吧。。
Original comment by nowin...@gmail.com
on 3 Mar 2012 at 9:07
什么按钮?
Original comment by CyrilF...@gmail.com
on 3 Mar 2012 at 12:43
地址栏右边。。
Original comment by nowin...@gmail.com
on 3 Mar 2012 at 1:57
你的意思是browser
action,即扳手左边的图标?类似于老版本地址栏里那个图标��
�功能?
因为与右键菜单的功能重复,所以我把它给删了。说说你需��
�的理由吧。
Original comment by CyrilF...@gmail.com
on 3 Mar 2012 at 3:26
跳转或者头修改生效了就能立刻知道,已便在不想要的网站��
�速关掉它。。
Original comment by nowin...@gmail.com
on 5 Mar 2012 at 2:56
我的理解就是信息提示+暂时禁用的功能,那你觉得是应该��
�在地址栏里(像以前一样)还是外面,两个实现稍有不同。
P.S.
Google表示正在审查这个扩展,我想来想去觉得唯一的可能性��
�是不小心引入了Google认为的敏感词(从其它开发者的反馈看�
��一般都是色情方面的)。由于审查需要几天,期间也不能更
新,所以开发暂时停一下。趁此空闲正好可以好好想想未来��
�计划。
Original comment by CyrilF...@gmail.com
on 5 Mar 2012 at 4:03
选项里设置吧,菜单,地址栏里,扳手旁边。。个人倾向是��
�手旁边,像ab那种,其实我不怎么留意的。类似proxy
switchy。。google的审查其实很蛋疼。。你也不需要纠结于进没�
��市场。。
Original comment by nowin...@gmail.com
on 5 Mar 2012 at 4:55
[deleted comment]
头处理有问题
[{"name":"QQ重定向","match":{"str":"*qq.com*","type":1,"modi":true},"sub":{"s
tr":"-Referer","type":3,"modi":false,"modg":false},"repl":{"str":"","decode":fal
se},"enabled":1}]
这个规则处理QQ盗链无效,而且background。js 270行出错。。
Original comment by nowin...@gmail.com
on 5 Mar 2012 at 6:02
[deleted comment]
[deleted comment]
[deleted comment]
[deleted comment]
头处理的问题已经解决,请安装最新版。另搜索并编写了3条�
��则,分别针对qq,baidu,sina,已验证。直接追加到规则列表�
��行了。
[{"name":"Remove QQ Image
Referer","match":{"str":"^http://(?!qzone\\.)[^/]*qq\\.com/","type":0,"modi":fal
se},"sub":{"str":"-Referer","type":3,"modi":false,"modg":false},"repl":{"str":""
,"decode":false},"enabled":1},{"name":"Remove Baidu Image
Referer","match":{"str":"(imgsrc|hiphotos)\\.baidu\\.com","type":0,"modi":false}
,"sub":{"str":"-Referer","type":3,"modi":false,"modg":false},"repl":{"str":"","d
ecode":false},"enabled":1},{"name":"Remove Sina Image
Referer","match":{"str":"^http://(photo|album|s\\d+)\\.sina(img)?(\\.com)?\\.cn/
","type":0,"modi":false},"sub":{"str":"-Referer","type":3,"modi":false,"modg":fa
lse},"repl":{"str":"","decode":false},"enabled":1}]]
(google code
issue系统好像有bug,这个备份总是贴不全,最后会少个方括号
)
Original comment by CyrilF...@gmail.com
on 5 Mar 2012 at 9:07
贴了5遍终于贴上了
Original comment by CyrilF...@gmail.com
on 5 Mar 2012 at 9:07
[deleted comment]
browser
action(扳手旁边的)比较死板,扩展不能自己隐藏它,这点��
�比较不喜欢。
page action(地址栏里的)较灵活,我更倾向于这一种。
把page
action拿回来后功能应该也不会和以前版本中的那个相同。不��
�的时候就隐藏。主要提供信息显示(比如进行了重定向还是�
��修改),还有就是暂时禁用的功能。
右键菜单的功能是其它部件所无法取代的,主要是对于网页��
�链接的手动重定向。
Original comment by CyrilF...@gmail.com
on 5 Mar 2012 at 9:28
扩展检查升级做个??
Original comment by nowin...@gmail.com
on 8 Mar 2012 at 9:19
什么意思?
Original comment by CyrilF...@gmail.com
on 8 Mar 2012 at 10:43
类似于人人改造器的那种自动更新。。
Original comment by nowin...@gmail.com
on 8 Mar 2012 at 10:49
表示不用人人唉,没法体验“人人改造器”。能说详细点吗��
�
Original comment by CyrilF...@gmail.com
on 8 Mar 2012 at 10:58
这个还真不好说。。你 去看他代码吧。。
Original comment by nowin...@gmail.com
on 8 Mar 2012 at 11:00
我只是想知道功能,看代码太不直观了。你是指升级(更新��
�什么?
Original comment by CyrilF...@gmail.com
on 8 Mar 2012 at 11:02
扩展啊。。。本来是点扩展里的更新去市场检查更新,因为��
�陆市场经常有问题,所以他检测google的一个版本文件,检测�
��更新就自动下载。
Original comment by nowin...@gmail.com
on 8 Mar 2012 at 11:08
CWS的访问故障(据说是有时可以访问)好像是因为DNS解析的��
�题。如果改DNS
server或hosts文件行不通,可以试试IPv6(很多高校有向校内和��
�会提供),这个绝对没问题。
做自动更新我倒是有资源,不过个人觉得不妥:一是这种行��
�有malware的嫌疑,二是没必要实现一个已经有的功能。
你试一下我说的方法吧,毕竟CWS的扩展/应用不可能每个都��
�现这样的功能。这方面如果有疑问,可以给我发邮件。
Original comment by CyrilF...@gmail.com
on 8 Mar 2012 at 11:24
我现在觉得提示功能不好实现,因为无论是重定向还是头修��
�都很快(修改过程就1μs吧,网速还算给力的话几ms所有请求�
��处理完了),根本就来不及禁用。而如果是执行一个逆向的
过程,又非常复杂。
所以这个暂且不实现,要想禁用时,只能自己预先判断好,��
�键菜单里禁用吧。
关闭此议题。
Original comment by CyrilF...@gmail.com
on 18 Mar 2012 at 11:36
Original issue reported on code.google.com by
nowin...@gmail.com
on 26 Feb 2012 at 11:24