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 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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);
});