纳米盘和rayfile直接下载

针对特定网站的规则分享、讨论

Moderator: phoenix

Post Reply
Bonnie
Moderator
Posts: 165
Joined: Oct 05 2008, 01:27

纳米盘和rayfile直接下载

Post by Bonnie » Jan 02 2010, 08:54

在operachina论坛上看到的两个脚本,试了下觉得挺好用的,而且也比较简单,就改成了proxo规则。

Code: Select all

[Patterns]
Name = "Namipan Download Link"
Active = TRUE
URL = "(d.namipan.com/d|www.namipan.com/d/)"
Limit = 500
Match = "(<a href=javascript:AddLink\('([^\']+)\1'\);>[^<]+</a>)\2"
Replace = "\2"
          "<script type="text/javascript">"
          "var reallink=unescape(\"\1\");"
          "prlink = document.createElement("a");"
          "prlink.href=reallink;"
          "prlink.innerHTML="Download Link";"
          "prlink.style.marginLeft="10px";"
          "document.getElementById("win_os").appendChild(prlink);"
          "</script>"

Name = "Rayfile Download Link"
Active = TRUE
URL = "static.rayfile.com/media/js/downloader.js"
Limit = 20
Match = "filesize <= 20000000"
Replace = "filesize > 0"
另外rayfile和纳米盘在我这里载入非常慢,尤其是纳米盘,要10多秒才能完全载入,看了下有几个js文件和logo太慢了,kill掉会快很多。

Code: Select all

img.rayfile.com/push/qidian_3.js
img.rayfile.com/scr/[a-z]_[0-9]+.js
static.rayfile.com/media/img/loading.gif

www.namipan.com/dd.php?fid=*
xml.namipan.com/get_word_list.php
www.namipan.com/images/logo.gif
www.namipan.com/stat/visit.php?fid=*
另外把jquery和mootools的js文件放到本地然后分别重定向的话会更快。但如果某些网站用的版本和本地的不兼容的话可能会有问题,先试试看效果吧。

Code: Select all

*/mootools.js	$RDIR(http://local.ptron/sidki_h_2009-02-13/JSLibrary/mootools-1.2.4-core-yc.js)
*/jquery.js	$RDIR(http://local.ptron/sidki_h_2009-02-13/JSLibrary/jquery-1.3.2.min.js)

User avatar
phoenix
Site Admin
Posts: 525
Joined: Dec 29 2007, 16:27

Re: 纳米盘和rayfile直接下载

Post by phoenix » Jan 02 2010, 23:05

纳米盘的规则之前有讨论过,把 Addlink 的参数拿出来 $UESC() 就可以了。参考: http://forum.proxomitron.cn/viewtopic.php?f=5&t=133

Bonnie
Moderator
Posts: 165
Joined: Oct 05 2008, 01:27

Re: 纳米盘和rayfile直接下载

Post by Bonnie » Jan 02 2010, 23:22

纳米盘大于20M的文件不能直接用链接下载,所以还是留了jslink,点击即可往客户端里添加任务,省去右键-复制链接-新建这个步骤。

User avatar
phoenix
Site Admin
Posts: 525
Joined: Dec 29 2007, 16:27

Re: 纳米盘和rayfile直接下载

Post by phoenix » Jan 06 2010, 16:56

试了一个40M的文件,浏览器正常下载。

Bonnie
Moderator
Posts: 165
Joined: Oct 05 2008, 01:27

Re: 纳米盘和rayfile直接下载

Post by Bonnie » Jan 07 2010, 01:06

难道以前为了普及客户端强制大文件不给下载,现在客户端普及率高了所以取消了这个限制?
不过我已经换成你的那个规则了,想了一下能用prox实现的确实没必要用js方式。

Code: Select all

[Patterns]
Name = "Namipan Download Link"
Active = TRUE
URL = "(www|d).namipan.com/d/"
Bounds = "<a\s*</a>"
Limit = 500
Match = "(<a href=javascript:AddLink\("\1'[^<]+</a>)\2"
Replace = "\2"
          "<a href="$UESC(\1)" style="margin-left:10px;">$UESC(%26%2330452%3B%26%2325509%3B%26%2319979%3B%26%2336733%3B)</a>"

Post Reply