Skip to content

Commit

Permalink
feat: update package desc,
Browse files Browse the repository at this point in the history
remove unused lines
  • Loading branch information
uretgec committed Nov 21, 2022
1 parent 4eb7f46 commit eb292de
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 46 deletions.
40 changes: 0 additions & 40 deletions extension/contentScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 0 additions & 3 deletions extension/lib/gitdmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion extension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion manifestv2.template
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
2 changes: 1 addition & 1 deletion manifestv3.template
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit eb292de

Please sign in to comment.