diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index ebd1047d2..a6ce6abc3 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -1,11 +1,11 @@ -{ - "manifest_appName": { - "message": "PT Plugin Plus" - }, - "manifest_shortName": { - "message": "PT Plugin Plus" - }, - "manifest_appDescription": { - "message": "Just a tools for Private Tracker." - } +{ + "manifest_appName": { + "message": "PT Plugin Plus" + }, + "manifest_shortName": { + "message": "PT Plugin Plus" + }, + "manifest_appDescription": { + "message": "Just a tools for Private Tracker." + } } \ No newline at end of file diff --git a/public/_locales/zh_CN/messages.json b/public/_locales/zh_CN/messages.json index 3dcaa10bf..dd61a33d9 100644 --- a/public/_locales/zh_CN/messages.json +++ b/public/_locales/zh_CN/messages.json @@ -1,11 +1,11 @@ -{ - "manifest_appName": { - "message": "PT Plugin Plus" - }, - "manifest_shortName": { - "message": "PTPP" - }, - "manifest_appDescription": { - "message": "PT 助手,一个可以提升 PT 站点使用效率的工具。" - } +{ + "manifest_appName": { + "message": "PT Plugin Plus" + }, + "manifest_shortName": { + "message": "PTPP" + }, + "manifest_appDescription": { + "message": "PT 助手,一个可以提升 PT 站点使用效率的工具。" + } } \ No newline at end of file diff --git a/public/libs/notice/notice.js b/public/libs/notice/notice.js index dce5f3f72..20a996c2f 100644 --- a/public/libs/notice/notice.js +++ b/public/libs/notice/notice.js @@ -137,10 +137,10 @@ function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; var options = API.Defaults; -/** - * @param {NoticeJs} ref - * @param {string} eventName - * @return {void} +/** + * @param {NoticeJs} ref + * @param {string} eventName + * @return {void} */ function getCallback(ref, eventName) { if (ref.callbacks.hasOwnProperty(eventName)) { @@ -314,9 +314,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } var NoticeJs = function () { - /** - * @param {object} options - * @returns {Noty} + /** + * @param {object} options + * @returns {Noty} */ function NoticeJs() { var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}; @@ -338,8 +338,8 @@ var NoticeJs = function () { return this; } - /** - * @returns {NoticeJs} + /** + * @returns {NoticeJs} */ @@ -373,10 +373,10 @@ var NoticeJs = function () { return noticeJs; } - /** - * @param {string} eventName - * @param {function} cb - * @return {NoticeJs} + /** + * @param {string} eventName + * @param {function} cb + * @return {NoticeJs} */ }, { @@ -391,17 +391,17 @@ var NoticeJs = function () { return this; } - /** - * @param {Object} options - * @return {Notice} + /** + * @param {Object} options + * @return {Notice} */ }, { key: 'close', - /** - * close + /** + * close */ value: function close() { helper.CloseItem(this.dom); diff --git a/public/manifest.json b/public/manifest.json index 44719639a..f28a57364 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,86 +1,86 @@ -{ - "name": "__MSG_manifest_appName__", - "short_name": "__MSG_manifest_shortName__", - "version": "1.6.1", - "description": "__MSG_manifest_appDescription__", - "manifest_version": 2, - "default_locale": "zh_CN", - "homepage_url": "https://github.com/pt-plugins/PT-Plugin-Plus", - "browser_action": { - "default_icon": "assets/icon-19.png", - "default_title": "__MSG_manifest_appName__" - }, - "permissions": [ - "activeTab", - "clipboardRead", - "clipboardWrite", - "storage", - "contextMenus", - "notifications", - "http://*/*", - "https://*/*", - "unlimitedStorage", - "webRequest", - "webRequestBlocking" - ], - "optional_permissions": ["downloads", "cookies", "alarms"], - "icons": { - "16": "assets/icon.png", - "19": "assets/icon-19.png", - "64": "assets/icon-64.png", - "128": "assets/icon-128.png" - }, - "options_ui": { - "page": "index.html", - "open_in_tab": true - }, - "background": { - "scripts": [ - "libs/types.expand.js", - "libs/jquery/jquery-3.3.1.min.js", - "libs/Base64.js", - "background/index.js" - ] - }, - "content_scripts": [{ - "matches": [ - "http://*/*", - "https://*/*" - ], - "exclude_matches": [ - "https://fonts.google.com/*" - ], - "css": [ - "assets/base.css", - "libs/materialIcons/content_style.css", - "libs/notice/noticejs.css", - "libs/basicContext/basicContext.min.css", - "libs/basicContext/themes/default.min.css" - ], - "js": [ - "libs/types.expand.js", - "libs/jquery/jquery-3.3.1.min.js", - "libs/Base64.js", - "libs/notice/notice.js", - "libs/basicContext/basicContext.min.js", - "libs/drag.js", - "contentScripts/index.js" - ] - }], - "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", - "web_accessible_resources": [ - "libs/materialIcons/*.woff2", - "assets/*", - "resource/*" - ], - "omnibox": { - "keyword": "pt" - }, - "minimum_chrome_version": "80", - "browser_specific_settings": { - "gecko": { - "update_url": "https://pt-plugins.github.io/PT-Plugin-Plus/update/firefox.json", - "strict_min_version": "80.0" - } - } -} +{ + "name": "__MSG_manifest_appName__", + "short_name": "__MSG_manifest_shortName__", + "version": "1.6.1", + "description": "__MSG_manifest_appDescription__", + "manifest_version": 2, + "default_locale": "zh_CN", + "homepage_url": "https://github.com/pt-plugins/PT-Plugin-Plus", + "browser_action": { + "default_icon": "assets/icon-19.png", + "default_title": "__MSG_manifest_appName__" + }, + "permissions": [ + "activeTab", + "clipboardRead", + "clipboardWrite", + "storage", + "contextMenus", + "notifications", + "http://*/*", + "https://*/*", + "unlimitedStorage", + "webRequest", + "webRequestBlocking" + ], + "optional_permissions": ["downloads", "cookies", "alarms"], + "icons": { + "16": "assets/icon.png", + "19": "assets/icon-19.png", + "64": "assets/icon-64.png", + "128": "assets/icon-128.png" + }, + "options_ui": { + "page": "index.html", + "open_in_tab": true + }, + "background": { + "scripts": [ + "libs/types.expand.js", + "libs/jquery/jquery-3.3.1.min.js", + "libs/Base64.js", + "background/index.js" + ] + }, + "content_scripts": [{ + "matches": [ + "http://*/*", + "https://*/*" + ], + "exclude_matches": [ + "https://fonts.google.com/*" + ], + "css": [ + "assets/base.css", + "libs/materialIcons/content_style.css", + "libs/notice/noticejs.css", + "libs/basicContext/basicContext.min.css", + "libs/basicContext/themes/default.min.css" + ], + "js": [ + "libs/types.expand.js", + "libs/jquery/jquery-3.3.1.min.js", + "libs/Base64.js", + "libs/notice/notice.js", + "libs/basicContext/basicContext.min.js", + "libs/drag.js", + "contentScripts/index.js" + ] + }], + "content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'", + "web_accessible_resources": [ + "libs/materialIcons/*.woff2", + "assets/*", + "resource/*" + ], + "omnibox": { + "keyword": "pt" + }, + "minimum_chrome_version": "80", + "browser_specific_settings": { + "gecko": { + "update_url": "https://pt-plugins.github.io/PT-Plugin-Plus/update/firefox.json", + "strict_min_version": "80.0" + } + } +} diff --git a/resource/libs/album/style.css b/resource/libs/album/style.css index 505784dd5..9dbd34c27 100644 --- a/resource/libs/album/style.css +++ b/resource/libs/album/style.css @@ -1,311 +1,311 @@ -.album { - width: 100%; - height: 100%; - z-index: 30000; - position: absolute; - top: 0px; - left: 0px; - bottom: 0px; - right: 0px; - overflow: hidden; -} - -.album .background { - filter: alpha(opacity=50); - opacity: 0.5; - background-color: #ccc; - width: 100%; - height: 100%; - position: absolute; - top: 0px; - left: 0px; - bottom: 0px; - right: 0px; -} - -.album .background-black { - background-color: #333; - width: 100%; - height: 100%; - position: absolute; - top: 0px; - left: 0px; - bottom: 0px; - right: 0px; -} - -.album .shower { - position: absolute; - top: 1px; - bottom: 190px; - width: 100%; - text-align: center; -} - -.album .topbar { - position: absolute; - top: 0px; - right: 0px; - opacity: 0.3; - filter: alpha(opacity=30); - background-color: #000; - /*height: 40px;*/ - padding: 8px 0 5px 5px; - width: auto; - overflow-y: hidden; -} - -.album .topbar.over { - opacity: 0.8; - filter: alpha(opacity=80); -} - -.album .topbar a.item { - width: 32px; - height: 32px; - display: inline-block; - margin: 3px 10px; - cursor: pointer; - filter: alpha(opacity=60); - opacity: 0.6; - background-image: url("chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons-32.png"); - background-repeat: no-repeat; - overflow: hidden; -} - -.album .topbar a.item:hover { - filter: alpha(opacity=100); - opacity: 1; -} - -.album .topbar .spliter { - width: 2px; - height: 28px; - line-height: 32px; - border-width: 2px; - border-style: solid; -} - -.album .topbar .rotate-left { - background-position: 0px 0px; -} - -.album .topbar .rotate-right { - background-position: 0px -32px; -} - -.album .topbar .close { - background-position: 0px -64px; -} - -.album .topbar .close:hover { - background-color: #ff3300; -} - -.album .topbar .download { - background-position: 0px -96px; -} - -.album .controlbar { - position: absolute; - bottom: 0px; - width: 100%; -} - -.album .listbar { - position: absolute; - bottom: 30px; - height: 160px; - width: 100%; - text-align: center; - background-color: #000; - filter: alpha(opacity=30); - opacity: 0.3; - overflow: hidden; -} - -.album .listbar-black { - position: absolute; - bottom: 30px; - height: 160px; - width: 100%; - text-align: center; - background-color: #fff; - opacity: 0.9; - overflow: hidden; -} - -.album .thumbimages { - height: 100%; - position: absolute; - display: inline-table; -} - -.album .labelbar { - position: absolute; - top: -30px; - bottom: 0px; - padding: 8px; - text-align: center; - width: 100%; - color: #fff; - background-color: #000; - /* background-color: rgba(0, 0, 0, 0.8); - */ - opacity: 0.8; - filter: alpha(opacity=80); - height: 30px; -} - -.album .label { - color: #fff; -} - -.album .closebutton { - position: absolute; - top: 0px; - right: 0px; - width: 50px; - height: 50px; - cursor: pointer; - text-align: center; - border-radius: 0 0 0 50px; - filter: alpha(opacity=70); - opacity: 0.7; - background: #ccc url("chrome-extension://__MSG_@@extension_id__/resource/libs/album/close.png") no-repeat 15px 3px; - /* background-position: right; - */ -} - -.album .album-item { - margin: 2px; - border-style: solid; - border-width: 1px; - border-color: #aabbcc; - cursor: pointer; -} - -.album .active { - border-width: 3px; - border-color: #ff6600; -} - -.album .loading { - position: absolute; - z-index: 30001; - left: 50%; - top: 50%; - background-color: rgba(0, 0, 0, 0.4); - filter: alpha(opacity=40); - padding: 15px; - border-radius: 8px; -} - -.album .zoomBar { - position: absolute; - display: inline; - width: 40px; - text-align: center; - right: 40px; -} - -.album .status-count { - position: absolute; - left: 10px; -} - -.album .button-left { - position: absolute; - width: 48px; - height: 48px; - top: 42%; - cursor: pointer; - filter: alpha(opacity=50); - opacity: 0.5; - background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png') no-repeat scroll 0px 0px transparent; -} - -.album .button-right { - position: absolute; - width: 48px; - height: 48px; - cursor: pointer; - right: 0px; - top: 42%; - filter: alpha(opacity=50); - opacity: 0.5; - background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png') no-repeat scroll 0px -48px transparent; -} - -.album .button-zoom-in { - position: absolute; - width: 16px; - height: 16px; - cursor: pointer; - right: 80px; - margin-top: -1px; - background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png?v=2') no-repeat scroll 0px -112px transparent; -} - -.album .button-zoom-out { - position: absolute; - width: 16px; - height: 16px; - cursor: pointer; - right: 25px; - margin-top: -1px; - background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png?v=2') no-repeat scroll -16px -112px transparent; -} - -.album .custom-botton-bar { - position: absolute; - height: 26px; - text-align: center; - width: 100%; -} - -.album button { - background-color: #ffb94b; - background-image: -webkit-gradient(linear, left top, left bottom, from(#fddb6f), to(#ffb94b)); - background-image: -webkit-linear-gradient(top, #fddb6f, #ffb94b); - background-image: -moz-linear-gradient(top, #fddb6f, #ffb94b); - background-image: -ms-linear-gradient(top, #fddb6f, #ffb94b); - background-image: -o-linear-gradient(top, #fddb6f, #ffb94b); - background-image: linear-gradient(top, #fddb6f, #ffb94b); - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - border-radius: 3px; - text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); - -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; - -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; - box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; - border-width: 1px; - border-style: solid; - border-color: #d69e31 #e3a037 #d5982d #e3a037; - float: left; - height: 24px; - padding: 3px; - cursor: pointer; - color: #8f5a0a; - filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fddb6f, endColorstr=#ffb94b, GradientType=0); -} - -.album .album-tags { - position: absolute; - left: 0px; - bottom: 30px; -} - -.album .album-tags a.album-tag { - display: table; - padding: 5px; - background-color: #777; - color: #fff; - margin: 1px; - text-decoration: none; -} - -.album .album-tags a.album-active { - background-color: #369; - border-right: 4px #09C solid; +.album { + width: 100%; + height: 100%; + z-index: 30000; + position: absolute; + top: 0px; + left: 0px; + bottom: 0px; + right: 0px; + overflow: hidden; +} + +.album .background { + filter: alpha(opacity=50); + opacity: 0.5; + background-color: #ccc; + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + bottom: 0px; + right: 0px; +} + +.album .background-black { + background-color: #333; + width: 100%; + height: 100%; + position: absolute; + top: 0px; + left: 0px; + bottom: 0px; + right: 0px; +} + +.album .shower { + position: absolute; + top: 1px; + bottom: 190px; + width: 100%; + text-align: center; +} + +.album .topbar { + position: absolute; + top: 0px; + right: 0px; + opacity: 0.3; + filter: alpha(opacity=30); + background-color: #000; + /*height: 40px;*/ + padding: 8px 0 5px 5px; + width: auto; + overflow-y: hidden; +} + +.album .topbar.over { + opacity: 0.8; + filter: alpha(opacity=80); +} + +.album .topbar a.item { + width: 32px; + height: 32px; + display: inline-block; + margin: 3px 10px; + cursor: pointer; + filter: alpha(opacity=60); + opacity: 0.6; + background-image: url("chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons-32.png"); + background-repeat: no-repeat; + overflow: hidden; +} + +.album .topbar a.item:hover { + filter: alpha(opacity=100); + opacity: 1; +} + +.album .topbar .spliter { + width: 2px; + height: 28px; + line-height: 32px; + border-width: 2px; + border-style: solid; +} + +.album .topbar .rotate-left { + background-position: 0px 0px; +} + +.album .topbar .rotate-right { + background-position: 0px -32px; +} + +.album .topbar .close { + background-position: 0px -64px; +} + +.album .topbar .close:hover { + background-color: #ff3300; +} + +.album .topbar .download { + background-position: 0px -96px; +} + +.album .controlbar { + position: absolute; + bottom: 0px; + width: 100%; +} + +.album .listbar { + position: absolute; + bottom: 30px; + height: 160px; + width: 100%; + text-align: center; + background-color: #000; + filter: alpha(opacity=30); + opacity: 0.3; + overflow: hidden; +} + +.album .listbar-black { + position: absolute; + bottom: 30px; + height: 160px; + width: 100%; + text-align: center; + background-color: #fff; + opacity: 0.9; + overflow: hidden; +} + +.album .thumbimages { + height: 100%; + position: absolute; + display: inline-table; +} + +.album .labelbar { + position: absolute; + top: -30px; + bottom: 0px; + padding: 8px; + text-align: center; + width: 100%; + color: #fff; + background-color: #000; + /* background-color: rgba(0, 0, 0, 0.8); + */ + opacity: 0.8; + filter: alpha(opacity=80); + height: 30px; +} + +.album .label { + color: #fff; +} + +.album .closebutton { + position: absolute; + top: 0px; + right: 0px; + width: 50px; + height: 50px; + cursor: pointer; + text-align: center; + border-radius: 0 0 0 50px; + filter: alpha(opacity=70); + opacity: 0.7; + background: #ccc url("chrome-extension://__MSG_@@extension_id__/resource/libs/album/close.png") no-repeat 15px 3px; + /* background-position: right; + */ +} + +.album .album-item { + margin: 2px; + border-style: solid; + border-width: 1px; + border-color: #aabbcc; + cursor: pointer; +} + +.album .active { + border-width: 3px; + border-color: #ff6600; +} + +.album .loading { + position: absolute; + z-index: 30001; + left: 50%; + top: 50%; + background-color: rgba(0, 0, 0, 0.4); + filter: alpha(opacity=40); + padding: 15px; + border-radius: 8px; +} + +.album .zoomBar { + position: absolute; + display: inline; + width: 40px; + text-align: center; + right: 40px; +} + +.album .status-count { + position: absolute; + left: 10px; +} + +.album .button-left { + position: absolute; + width: 48px; + height: 48px; + top: 42%; + cursor: pointer; + filter: alpha(opacity=50); + opacity: 0.5; + background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png') no-repeat scroll 0px 0px transparent; +} + +.album .button-right { + position: absolute; + width: 48px; + height: 48px; + cursor: pointer; + right: 0px; + top: 42%; + filter: alpha(opacity=50); + opacity: 0.5; + background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png') no-repeat scroll 0px -48px transparent; +} + +.album .button-zoom-in { + position: absolute; + width: 16px; + height: 16px; + cursor: pointer; + right: 80px; + margin-top: -1px; + background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png?v=2') no-repeat scroll 0px -112px transparent; +} + +.album .button-zoom-out { + position: absolute; + width: 16px; + height: 16px; + cursor: pointer; + right: 25px; + margin-top: -1px; + background: url('chrome-extension://__MSG_@@extension_id__/resource/libs/album/icons.png?v=2') no-repeat scroll -16px -112px transparent; +} + +.album .custom-botton-bar { + position: absolute; + height: 26px; + text-align: center; + width: 100%; +} + +.album button { + background-color: #ffb94b; + background-image: -webkit-gradient(linear, left top, left bottom, from(#fddb6f), to(#ffb94b)); + background-image: -webkit-linear-gradient(top, #fddb6f, #ffb94b); + background-image: -moz-linear-gradient(top, #fddb6f, #ffb94b); + background-image: -ms-linear-gradient(top, #fddb6f, #ffb94b); + background-image: -o-linear-gradient(top, #fddb6f, #ffb94b); + background-image: linear-gradient(top, #fddb6f, #ffb94b); + -moz-border-radius: 3px; + -webkit-border-radius: 3px; + border-radius: 3px; + text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); + -moz-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; + -webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; + box-shadow: 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.3) inset; + border-width: 1px; + border-style: solid; + border-color: #d69e31 #e3a037 #d5982d #e3a037; + float: left; + height: 24px; + padding: 3px; + cursor: pointer; + color: #8f5a0a; + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#fddb6f, endColorstr=#ffb94b, GradientType=0); +} + +.album .album-tags { + position: absolute; + left: 0px; + bottom: 30px; +} + +.album .album-tags a.album-tag { + display: table; + padding: 5px; + background-color: #777; + color: #fff; + margin: 1px; + text-decoration: none; +} + +.album .album-tags a.album-active { + background-color: #369; + border-right: 4px #09C solid; } \ No newline at end of file diff --git a/resource/schemas/NexusPHP/getSearchResult.js b/resource/schemas/NexusPHP/getSearchResult.js index 5f0cff8ea..607265bcb 100644 --- a/resource/schemas/NexusPHP/getSearchResult.js +++ b/resource/schemas/NexusPHP/getSearchResult.js @@ -1,506 +1,506 @@ -/** - * NexusPHP 默认搜索结果解析类 - */ -(function (options, Searcher) { - class Parser { - constructor() { - this.haveData = false; - if (/takelogin\.php|