Browse Source

更名:网页再造精灵 -> 网页油猴工具

zxlie 6 years ago
parent
commit
7f876e9a98

+ 2 - 1
apps/background/index.js

@@ -349,7 +349,8 @@ var BgPageInstance = (function () {
      */
     let downloadCrxFileFromWebStoreDetailPage = function (callback) {
 
-        chrome.tabs.getSelected(null, function (tab) {
+        chrome.tabs.query({active: true, currentWindow: true}, function (tabs) {
+            let tab = tabs[0];
             let crxId = tab.url.split("/")[6].split('?')[0];
             let crxName = tab.title.split(" - Chrome")[0] + ".crx";
             crxName = crxName.replace(/[&\/\\:"*<>|?]/g, '');

+ 1 - 1
apps/manifest.json

@@ -1,6 +1,6 @@
 {
   "name": "WEB前端助手(FeHelper)-Dev",
-  "version": "2019.06.2715",
+  "version": "2019.07.1016",
   "manifest_version": 2,
   "default_locale": "zh_CN",
   "description": "Awesome,All In One的一个工具,包含多个独立小应用,比如:Json工具、代码美化工具、代码压缩、二维码工具、markdown工具、网页油猴工具、便签笔记工具、信息加密与解密、随机密码生成、Crontab等等!",

+ 16 - 0
apps/options/index.css

@@ -133,4 +133,20 @@ h5,h4 {
 .x-tips {
     font-size: 12px;
     color: #aaa;
+}
+.x-donate {
+    font-size: 14px;
+    color: #d00;
+    margin-left: 10px;
+    text-decoration: underline;
+    text-decoration-style: double;
+}
+.box-donate {
+    position: absolute;
+    top: 60px;
+    left: 150px;
+    background: #fff;
+    border: 1px solid #ccc;
+    border-radius: 6px;
+    padding: 5px;
 }

File diff suppressed because it is too large
+ 0 - 0
apps/options/index.html


+ 12 - 0
apps/options/index.js

@@ -106,6 +106,18 @@ new Vue({
                 url: 'chrome://extensions/shortcuts'
             });
             return false;
+        },
+
+        donateToggle: function (event) {
+            let box = this.$refs.boxDonate;
+            if (box.classList.contains('hide')) {
+                box.classList.remove('hide');
+                box.style.top = (event.target.offsetTop + 30) + 'px';
+                box.style.left = event.target.offsetLeft + 'px';
+            } else {
+                box.classList.add('hide');
+            }
+
         }
     }
 });

BIN
apps/static/screenshot/crx/WEB前端助手(FeHelper)_v2019.07.1016.crx


+ 1 - 1
gulpfile.js

@@ -167,7 +167,7 @@ gulp.task('firefox', () => {
     manifest.applications = {
         "gecko": {
             "id": "[email protected]",
-            "strict_min_version": "45.0"
+            "strict_min_version": "57.0"
         }
     };
     manifest.version = manifest.version.replace(/\./,'') + 'stable';

Some files were not shown because too many files changed in this diff