Page 1 of 1

这样的链接跳转怎样实现?

Posted: Feb 24 2013, 21:15
by 不夜侯
经常在网上搜索小说看。
如:http://www.bookso.net/book/101944.html
页面中链接指向许多小说网站,具体打开后应该是内框架吧,不懂。
如:http://www.bookso.net/chapter/14434411.html,看源代码真实地址是:<frame name="Main" src="http://www.shuhe.cc/12065/3312825/">。
能不能建个规则,当点击 http://www.bookso.net/chapter/14434411.html 时,直接打开 http://www.shuhe.cc/12065/3312825/
好像是很随机的,找不到规律。
求教,顺祝大家新年愉快!

Re: 这样的链接跳转怎样实现?

Posted: Feb 25 2013, 23:29
by phoenix
试试:

Code: Select all

[Patterns]
Name = "www.bookso.net Jump to Frame URL"
Active = TRUE
URL = "$TYPE(htm)www.bookso.net/chapter/"
Bounds = "<html>*</html>"
Limit = 1024
Match = "*<frame name="Main" src=$AV(\1)>*"
Replace = "<head>"
          "<meta http-equiv="refresh" content="0;url=\1">"
          "</head>"

Re: 这样的链接跳转怎样实现?

Posted: Feb 26 2013, 12:48
by 不夜侯
谢谢!
还真没想到这样全部替换代码。
以前思路方向错了,只想在上一级网页链接中想办法。