Skip to content

Commit

Permalink
一些小幅修正
Browse files Browse the repository at this point in the history
  • Loading branch information
ywzhaiqi committed Dec 16, 2014
1 parent f519d2c commit aabc9c1
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
18 changes: 14 additions & 4 deletions BaiduPanDownloadHelper/BaiduPanHelper.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,16 @@ var moveDialog = (function() {
$checkbox,
paths = [];

function setSelectPath(path) {
if (path) {
fileTreeView.obtain.getSelectPath = function() {
return path;
};
} else {
delete fileTreeView.obtain.getSelectPath;
}
}

function refreshPaths() {
paths.length = 0;

Expand Down Expand Up @@ -204,14 +214,12 @@ var moveDialog = (function() {
if (this.checked) {
var path = $input.val();
if (path) {
fileTreeView.obtain.getSelectPath = function() {
return path;
};
setSelectPath(path);
} else {
$input.focus();
}
} else {
delete fileTreeView.obtain.getSelectPath;
setSelectPath();
}
};

Expand Down Expand Up @@ -243,6 +251,8 @@ var moveDialog = (function() {

function dialogShow() {
refreshPaths();

setSelectPath();
}

function init() {
Expand Down
1 change: 1 addition & 0 deletions Flvxz.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// @version 0.1
// @description flvxz.com 复制到剪贴板或使用 IDM 下载。其中 "用 IDM 下载" 需要注册协议,配合 addToIDM.ahk 实现。
// @include http://*flvxz.com/?url=*
// @include http://*flv.cn/?url=*
// @grant GM_setClipboard
// @require http://cdn.staticfile.org/jquery/2.1.1/jquery.min.js
// @noframes
Expand Down
5 changes: 3 additions & 2 deletions Super_preloaderPlus/src/meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// @include http*
// @exclude http*://mail.google.com/*
// @exclude http*://maps.google*
// @exclude http*://maps.google*
// @exclude http*://www.google.com/reader*
// @exclude http*://www.google.com/calendar*
// @exclude https://docs.google.com/*
Expand All @@ -34,6 +34,7 @@
// @exclude http://www.youku.com/
// @exclude http://v.youku.com/*
// @exclude http://www.iqiyi.com/*
// @exclude http://www.duokan.com/reader/*
// ==/UserScript==


Expand All @@ -44,4 +45,4 @@ var scriptInfo = {
homepageURL: 'https://greasyfork.org/scripts/293-super-preloaderplus-one',
downloadUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.user.js',
metaUrl: 'https://greasyfork.org/scripts/293-super-preloaderplus-one/code/Super_preloaderPlus_one.meta.js',
};
};
2 changes: 1 addition & 1 deletion trakt.tv_个人辅助脚本.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// ==/UserScript==

// 优先的类别
var enableType = 'yyxz';
var enableType = 'yyets';

// 无法在线播放的规则
var rules = {
Expand Down

0 comments on commit aabc9c1

Please sign in to comment.