Filer.net Download-Link getter

Adds a button which permits to view all the download links of a folder on filer.net (for use with a DL-Manager)

当前为 2014-12-18 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Filer.net Download-Link getter
// @namespace    http://your.homepage/
// @version      0.1
// @description  Adds a button which permits to view all the download links of a folder on filer.net (for use with a DL-Manager)
// @author       derTobi
// @match        http://filer.net/folder/*
// @grant        none
// ==/UserScript==
var oHead = document.getElementsByTagName('HEAD').item(0);
var oScript= document.createElement("script");
oScript.type = "text/javascript";
oScript.src="https://code.jquery.com/ui/1.11.2/jquery-ui.min.js";
oHead.appendChild( oScript);

//document.write("<script src='https://code.jquery.com/ui/1.11.2/jquery-ui.min.js'><\/script>");
$(document).ready(function(){
    var btn = $("<li><a>Download folder</a></li>");
    btn.click(function(){
       	a = $('.table-stripped a:has(img)');
        crtItem = "<div id='dialog' style='background-color: white; border: 1px solid black; margin: 10px; overflow-y: scroll; position: absolute; top: 0; left: 0; right: auto; bottom: auto'>";
        for (i = 0; i < a.length; i++){
            crtItem += a[i].href + "<br>\r\n";
        }
        debugger;
        crtItem += "</div>";
       	$("body").append(crtItem);
    });
    $("ul.nav-list").append(btn);
});