vocaliu / chrome-redirector

Automatically exported from code.google.com/p/chrome-redirector
GNU General Public License v3.0
0 stars 0 forks source link

[RULE] 请教“内容过滤”的机制 #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
请问下,在“匹配”中的“内容过滤”,它是怎么起作用的��
�
例如我有条规则匹配google.com.hk,将其重定向到google.com,内容
过滤中仅选择脚本。
那是不是当访问脚本中含google.com.hk的代码时,将其重定向到g
oogle.com呢?

Original issue reported on code.google.com by mj198...@gmail.com on 8 Oct 2013 at 3:08

GoogleCodeExporter commented 8 years ago
“内容过滤”是指只对选种类型的内容进行处理,因为不同��
�地址所代表的内容可以是不同的。如这个页面上有一个地址�
��「https://apis.google.com/js/plusone.js」,它的内容是一个脚本;��
�以更改它的地址,比如指向别的东西,并不涉及其内容。

Original comment by CyrilF...@gmail.com on 9 Oct 2013 at 4:15

GoogleCodeExporter commented 8 years ago
原来是仅对加载的链接匹配,那我再请教下,我现在想对页��
�调用的特定地址进行重定向,除非该地址是有手工在地址栏�
��入的,这样可以实现吗?

Original comment by mj198...@gmail.com on 9 Oct 2013 at 4:39

GoogleCodeExporter commented 8 years ago
不确定你的问题,但地址是否在地址栏输入没有区别,匹配��
�处理是在加载过程中发生的。不过一般地址栏上的地址对应�
��容为main frame。

Original comment by CyrilF...@gmail.com on 10 Oct 2013 at 4:11

GoogleCodeExporter commented 8 years ago
问题:http://www.xdowns.com/article/239/Article_3230.html
我现在的思路是想自己手动输入192.168.1.1可以正常访问,但若
是网页通过任何方式调用全部重定向,能够实现吗?

Original comment by mj198...@gmail.com on 10 Oct 2013 at 2:15

GoogleCodeExporter commented 8 years ago
如果在地址、内容类型等方面无法区分则不能实现。关于内��
�类型你可以用扩展内置的调试器看一下是否有不同。

Original comment by CyrilF...@gmail.com on 10 Oct 2013 at 2:29

GoogleCodeExporter commented 8 years ago
多谢你的帮助,都是主框架的,无法通过内容类型区分,我��
�想想其他办法。

Original comment by mj198...@gmail.com on 11 Oct 2013 at 12:47