faterover
小狐狸
小狐狸
  • UID45923
  • 注册日期2014-05-11
  • 最后登录2023-03-13
  • 发帖数61
  • 经验66枚
  • 威望0点
  • 贡献值58点
  • 好评度5点
阅读:1878回复:4

几个关于下载的问题

楼主#
更多 发布于:2017-07-15 10:49
1、有些下载页面下载时弹出的页面无法自动关闭,典型的   http://dl.3dmgame.com/201707/110118.html    这个页面,地址栏解析完了,非空,用自动关闭下载产生的页面脚本无效。
2、http://www.uc129.com/plus/download.php?open=0&aid=25944&cid=3     这个页面如果用xthunder接管,只会下载个download.php,firefox要想拉起迅雷,得在按钮上右键一下,然后左键才能拉起迅雷。这页面似乎只有IE能正确拉起迅雷。这是网站在刷流量推广么?
liuxb
非常火狐
非常火狐
  • UID26160
  • 注册日期2008-09-05
  • 最后登录2021-12-02
  • 发帖数659
  • 经验324枚
  • 威望0点
  • 贡献值184点
  • 好评度16点
1楼#
发布于:2017-07-15 12:02
1 页面不是空白的,源码<script>location.href='http://dl2.3dmgame.com/fwqk123/3DMGAME-DS3-Armor-of-the-Meme-214-1-00.rar';</script>,这个好像不好自动关?
2 href默认是空的#,点击或者右键就好了。不能启动迅雷说明thunder://没有注册好,迅雷没有安装好(重新注册bho插件?)。和firefox无关。可以右键-复制链接,粘贴到迅雷里。
我的...
faterover
小狐狸
小狐狸
  • UID45923
  • 注册日期2014-05-11
  • 最后登录2023-03-13
  • 发帖数61
  • 经验66枚
  • 威望0点
  • 贡献值58点
  • 好评度5点
2楼#
发布于:2017-07-15 12:08
liuxb:1 页面不是空白的,源码<script>location.href='http://dl2.3dmgame.com/fwqk123/3DMGAME-DS3-Armor-of-the-Meme-214-1-00.rar';</script>,...回到原帖
2、注册肯定是注册好的  其他的下载页面都可以拉起thunder。这个页面必须先模拟下点击,才能获取真实地址么?
taoww
非常火狐
非常火狐
  • UID39284
  • 注册日期2013-03-18
  • 最后登录2024-03-26
  • 发帖数621
  • 经验569枚
  • 威望0点
  • 贡献值110点
  • 好评度99点
3楼#
发布于:2017-07-15 12:45
faterover:2、注册肯定是注册好的  其他的下载页面都可以拉起thunder。这个页面必须先模拟下点击,才能获取真实地址么?回到原帖

 是的,它页面代码是这样的:

<a href="#" thunderpid="92922" thundertype="" thunderrestitle="" onclick="return OnDownloadClick_Simple(this,2);" oncontextmenu="ThunderNetwork_SetHref(this);" title="迅雷专用高速下载" ztuhhrfe="thunder://QUFodHRwOi8vYS51YzEyOS5jb20vaGovdXBsb2Fkcy9zb2Z0LzE3MDYwMS9SYXRoZXJXZWlyZC4wLjIuMC56aXBaWg==">本地下载</a>

 只有点击右键,才会触发oncontextmenu事件,将这个链接的地址修改为ztuhhrfe的值。当然可以用个userscript脚本来自动修改,这样就不用自己去点右键触发了

// ==UserScript==
// @name        uc129.com
// @namespace   uc129.com
// @include     http://www.uc129.com/plus/download.php?*
// @version     1
// @grant       none
// @run-at      document-end
// ==/UserScript==

var thunderHrefAttr = null;
Array.prototype.forEach.call(document.querySelectorAll('a[oncontextmenu^="ThunderNetwork_SetHref"]'), function(e) {
  if (thunderHrefAttr === null) {
    Array.prototype.some.call(e.attributes, function(a) {
      if (a.value.indexOf("thunder://") === 0) {
        thunderHrefAttr = a.name;
        return true;
      }
    });
  }
  e.href = e.getAttribute(thunderHrefAttr);
});
faterover
小狐狸
小狐狸
  • UID45923
  • 注册日期2014-05-11
  • 最后登录2023-03-13
  • 发帖数61
  • 经验66枚
  • 威望0点
  • 贡献值58点
  • 好评度5点
4楼#
发布于:2017-07-15 13:47
thx
http://bbs.kafan.cn/thread-1699919-4-1.html  这个问题有修正么?
游客

返回顶部