Skip to content

Commit eb292de

Browse files
committed
feat: update package desc,
remove unused lines
1 parent 4eb7f46 commit eb292de

File tree

5 files changed

+3
-46
lines changed

5 files changed

+3
-46
lines changed

extension/contentScript.js

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -28,40 +28,12 @@ chrome.runtime.onMessage.addListener(function (request, sender, sendResponse) {
2828

2929
// inject gitdmanager
3030
injectGitdScripts("lib/gitdmanager.js")
31-
/*let gitdmanagerjs = chrome.runtime.getURL("lib/gitdmanager.js")
32-
let s2 = document.createElement('script')
33-
s2.src = gitdmanagerjs;
34-
s2.onload = function() {
35-
s2.parentNode.removeChild(s2);
36-
//this.remove();
37-
};
38-
(document.body || document.documentElement).appendChild(s2)
39-
if (isDebugActive()) console.log(s2);*/
4031

4132
// inject alpine
4233
injectGitdScripts("lib/alpine-scp.min.js")
43-
/*let alpinejs = chrome.runtime.getURL("lib/alpine-scp.min.js")
44-
let s = document.createElement('script')
45-
s.setAttribute("defer", "defer")
46-
s.src = alpinejs;
47-
s.onload = function() {
48-
s.parentNode.removeChild(s);
49-
//this.remove();
50-
};
51-
(document.head || document.documentElement).appendChild(s)
52-
if (isDebugActive()) console.log(s);*/
5334

5435
// inject fflate
5536
injectGitdScripts("lib/fflate.min.js")
56-
/*let afflatejs = chrome.runtime.getURL("lib/fflate.min.js")
57-
let s1 = document.createElement('script')
58-
s1.src = afflatejs;
59-
s1.onload = function() {
60-
s1.parentNode.removeChild(s1);
61-
//this.remove();
62-
};
63-
(document.head || document.documentElement).appendChild(s1)
64-
if (isDebugActive()) console.log(s1);*/
6537

6638
break;
6739
default:
@@ -123,18 +95,6 @@ window.addEventListener("turbo:load", function(evt) {
12395

12496
}, false);
12597

126-
/*window.addEventListener("turbo:visit", function(evt) {
127-
if (isDebugActive()) console.log("content-script", "turbo:visit", evt)
128-
}, false);
129-
130-
window.addEventListener("pageshow", function(evt) {
131-
if (isDebugActive()) console.log("content-script", "pageshow", evt)
132-
}, false);
133-
134-
window.addEventListener("turbo:frame-render", function(evt) {
135-
if (isDebugActive()) console.log("content-script", "turbo:frame-render", evt)
136-
}, false);*/
137-
13898
// debug mode listener
13999
window.addEventListener("debug-mode-changed", function(evt) {
140100
if (isDebugActive()) console.log("content-script", "debug-mode-changed", evt)

extension/lib/gitdmanager.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ document.addEventListener('alpine:init', () => {
328328
// get current tab url
329329
this.gitUrl = window.location.href
330330

331-
// get branch name
332-
//this.gitBranch =
333-
334331
// collect form values
335332
this.validateGitUrl()
336333
if (!this.gitUrlValid) {

extension/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Gitd Download Manager",
44
"short_name": "Gitd",
5-
"description": "Gitd allows you to download only the files you want without having to download all of the public repository.",
5+
"description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.",
66
"version": "1.0.1",
77
"homepage_url": "https://github.com/git-download-manager/gitd-extension",
88
"permissions": [

manifestv2.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Gitd Download Manager",
44
"short_name": "Gitd",
5-
"description": "Gitd allows you to download only the files you want without having to download all of the public repository.",
5+
"description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.",
66
"version": "BUILD_NUMBER",
77
"homepage_url": "https://github.com/git-download-manager/gitd-extension",
88
"permissions": [

manifestv3.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Gitd Download Manager",
44
"short_name": "Gitd",
5-
"description": "Gitd allows you to download only the files you want without having to download all of the public repository.",
5+
"description": "Download selected files and folders as a zip files with a single click, without the need for any API key or token.",
66
"version": "BUILD_NUMBER",
77
"homepage_url": "https://github.com/git-download-manager/gitd-extension",
88
"permissions": [

0 commit comments

Comments
 (0)