From 490d7893d83d1219397fcb624d10992fec3152c2 Mon Sep 17 00:00:00 2001 From: acgotaku Date: Sat, 10 Jan 2015 14:34:10 +0800 Subject: [PATCH] support fold --- chrome/js/baidu.js | 44 ++++++++++++++++++++++++++++++------- chrome/manifest.json | 2 +- firefox/baidu-exporter.xpi | Bin 44891 -> 45202 bytes firefox/data/js/baidu.js | 43 ++++++++++++++++++++++++++++++------ firefox/package.json | 2 +- 5 files changed, 74 insertions(+), 17 deletions(-) diff --git a/chrome/js/baidu.js b/chrome/js/baidu.js index 51c9650..a0966e0 100644 --- a/chrome/js/baidu.js +++ b/chrome/js/baidu.js @@ -11,11 +11,11 @@ // @include https://*n.baidu.com/disk/home* // @include https://*n.baidu.com/share/link* // @run-at document-end -// @version 0.2.8 +// @version 0.2.9 // ==/UserScript== var baidu = function(cookies) { - var version = "0.2.8"; - var update_date = "2015/01/08"; + var version = "0.2.9"; + var update_date = "2015/01/10"; var baidupan = (function() { var home = window.location.href.indexOf("/disk/home") != -1 ? true : false; //封装的百度的Toast提示消息 @@ -29,7 +29,7 @@ var baidu = function(cookies) { sticky: false }); }; - console.log=function() {}; + //console.log=function() {}; //重新封装的XMLHttpRequest 用来代替$.ajax 因为百度网盘的$.ajax已经被修改了 var HttpSendRead = function(info) { var http = new XMLHttpRequest(); @@ -190,6 +190,7 @@ var baidu = function(cookies) { config.click(function() { $("#setting_div").show(); + $("#setting_divtopmsg").html(""); self.set_center($("#setting_div")); }); @@ -210,16 +211,40 @@ var baidu = function(cookies) { var Filename = File.get("selectedItemList"); var obj = $.parseJSON(data); console.log(obj); - var name = null; + var name = self.get_level(); var length = Filename.length; for (var i = 0; i < length; i++) { if (obj.dlink[0].fs_id == Filename[i].attr("data-id")) { - name = Filename[i].children().eq(0).children().eq(2).attr("title")||Filename[i].children().eq(0).attr("title"); + name = name+ Filename[i].children().eq(0).children().eq(2).attr("title")||Filename[i].children().eq(0).attr("title"); } } + file_list.push({"name": name, "link": obj.dlink[0].dlink}); self[func](file_list); }, + //获取文件夹层数 + get_level:function(){ + var API = (require("common:widget/restApi/restApi.js"),require("common:widget/hash/hash.js")); + var level=parseInt($("#rpc_fold").val()); + var path=""; + var maxlevel=API.get("path").split("/").length-1; + if(level>maxlevel){ + SetMessage("文件夹层数超过完整路径", "MODE_CAUTION"); + level=maxlevel; + } + if(level == -1){ + path=API.get("path")+"/"; + }else if(level>0){ + var num=[]; + for(var i=0;i', '', '(单位:毫秒)', + '(默认0表示不保留,-1表示保留完整路径)', '
测试连接,成功显示版本号。
', '', '', @@ -420,6 +446,7 @@ var baidu = function(cookies) { set_config: function() { $("#rpc_input").val((localStorage.getItem("rpc_url") || "http://localhost:6800/jsonrpc")); $("#rpc_delay").val((localStorage.getItem("rpc_delay") || "300")); + $("#rpc_fold").val((localStorage.getItem("rpc_fold") || "0")); $("#rpc_token").val(localStorage.getItem("rpc_token")); $("#setting_aria2_dir").val(localStorage.getItem("rpc_dir")); $("#setting_aria2_useragent_input").val(localStorage.getItem("UA") || "netdisk;4.4.0.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia"); @@ -466,6 +493,7 @@ var baidu = function(cookies) { localStorage.setItem("rpc_delay", $("#rpc_delay").val()); localStorage.setItem("rpc_token", $("#rpc_token").val()); localStorage.setItem("rpc_dir", $("#setting_aria2_dir").val()); + localStorage.setItem("rpc_fold", $("#rpc_fold").val()); localStorage.setItem("rpc_headers", $("#setting_aria2_headers").val()); }, get_share_id: function() { @@ -736,7 +764,7 @@ var baidu = function(cookies) { var file=json.info; var file_list = []; for(var i=0;incIlEv>61lf$o0Gi{%~jgcFQ8qTQgAC*+49wl{6xC0QvJi4 zAo;<&4F8L@03*CePU^w@Zy2FJ-AB0cFg$~V5H#C-Y}zlrYy;XxltNz8btm{>aGg4- zt$-5H9g#QzHF`i5n0WR-D=pzY$t09kGrDw(n%KmuaO3-N%rrs_?dpGeLD?u&_H584 z53I_;NQ8g9@F(WfL^-^O-)oy1aAnD)`rrKAVS~J`S!n&8_d)8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get("path")+"/"; + }else if(level>0){ + var num=[]; + for(var i=0;i', '', '(单位:毫秒)', + '(默认0表示不保留,-1表示保留完整路径)', '', '', '', @@ -419,6 +446,7 @@ var baidu = function(cookies) { set_config: function() { $("#rpc_input").val((localStorage.getItem("rpc_url") || "http://localhost:6800/jsonrpc")); $("#rpc_delay").val((localStorage.getItem("rpc_delay") || "300")); + $("#rpc_fold").val((localStorage.getItem("rpc_fold") || "0")); $("#rpc_token").val(localStorage.getItem("rpc_token")); $("#setting_aria2_dir").val(localStorage.getItem("rpc_dir")); $("#setting_aria2_useragent_input").val(localStorage.getItem("UA") || "netdisk;4.4.0.6;PC;PC-Windows;6.2.9200;WindowsBaiduYunGuanJia"); @@ -465,6 +493,7 @@ var baidu = function(cookies) { localStorage.setItem("rpc_delay", $("#rpc_delay").val()); localStorage.setItem("rpc_token", $("#rpc_token").val()); localStorage.setItem("rpc_dir", $("#setting_aria2_dir").val()); + localStorage.setItem("rpc_fold", $("#rpc_fold").val()); localStorage.setItem("rpc_headers", $("#setting_aria2_headers").val()); }, get_share_id: function() { @@ -735,7 +764,7 @@ var baidu = function(cookies) { var file=json.info; var file_list = []; for(var i=0;i