diff --git a/extension/contentScript.js b/extension/contentScript.js index 0d89363..8452081 100644 --- a/extension/contentScript.js +++ b/extension/contentScript.js @@ -28,40 +28,12 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) { // inject gitdmanager injectGitdScripts("lib/gitdmanager.js") - /*let gitdmanagerjs = chrome.runtime.getURL("lib/gitdmanager.js") - let s2 = document.createElement('script') - s2.src = gitdmanagerjs; - s2.onload = function() { - s2.parentNode.removeChild(s2); - //this.remove(); - }; - (document.body || document.documentElement).appendChild(s2) - if (isDebugActive()) console.log(s2);*/ // inject alpine injectGitdScripts("lib/alpine-scp.min.js") - /*let alpinejs = chrome.runtime.getURL("lib/alpine-scp.min.js") - let s = document.createElement('script') - s.setAttribute("defer", "defer") - s.src = alpinejs; - s.onload = function() { - s.parentNode.removeChild(s); - //this.remove(); - }; - (document.head || document.documentElement).appendChild(s) - if (isDebugActive()) console.log(s);*/ // inject fflate injectGitdScripts("lib/fflate.min.js") - /*let afflatejs = chrome.runtime.getURL("lib/fflate.min.js") - let s1 = document.createElement('script') - s1.src = afflatejs; - s1.onload = function() { - s1.parentNode.removeChild(s1); - //this.remove(); - }; - (document.head || document.documentElement).appendChild(s1) - if (isDebugActive()) console.log(s1);*/ break; default: @@ -123,18 +95,6 @@ window.addEventListener("turbo:load", function(evt) { }, false); -/*window.addEventListener("turbo:visit", function(evt) { - if (isDebugActive()) console.log("content-script", "turbo:visit", evt) -}, false); - -window.addEventListener("pageshow", function(evt) { - if (isDebugActive()) console.log("content-script", "pageshow", evt) -}, false); - -window.addEventListener("turbo:frame-render", function(evt) { - if (isDebugActive()) console.log("content-script", "turbo:frame-render", evt) -}, false);*/ - // debug mode listener window.addEventListener("debug-mode-changed", function(evt) { if (isDebugActive()) console.log("content-script", "debug-mode-changed", evt) diff --git a/extension/lib/gitdmanager.js b/extension/lib/gitdmanager.js index 98e768e..f7b24a0 100644 --- a/extension/lib/gitdmanager.js +++ b/extension/lib/gitdmanager.js @@ -328,9 +328,6 @@ document.addEventListener('alpine:init', () => { // get current tab url this.gitUrl = window.location.href - // get branch name - //this.gitBranch = - // collect form values this.validateGitUrl() if (!this.gitUrlValid) { diff --git a/extension/manifest.json b/extension/manifest.json index 0e4280f..e363bed 100644 --- a/extension/manifest.json +++ b/extension/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Gitd Download Manager", "short_name": "Gitd", - "description": "Gitd allows you to download only the files you want without having to download all of the public repository.", + "description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.", "version": "1.0.1", "homepage_url": "https://github.com/git-download-manager/gitd-extension", "permissions": [ diff --git a/manifestv2.template b/manifestv2.template index b716c48..cb2a4d7 100644 --- a/manifestv2.template +++ b/manifestv2.template @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Gitd Download Manager", "short_name": "Gitd", - "description": "Gitd allows you to download only the files you want without having to download all of the public repository.", + "description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.", "version": "BUILD_NUMBER", "homepage_url": "https://github.com/git-download-manager/gitd-extension", "permissions": [ diff --git a/manifestv3.template b/manifestv3.template index 5abe3f9..a32fbf5 100644 --- a/manifestv3.template +++ b/manifestv3.template @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Gitd Download Manager", "short_name": "Gitd", - "description": "Gitd allows you to download only the files you want without having to download all of the public repository.", + "description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.", "version": "BUILD_NUMBER", "homepage_url": "https://github.com/git-download-manager/gitd-extension", "permissions": [