Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from 2000me/window-or-tab
Tested with Firefox Developer Edition 73.0b3
- Loading branch information
Showing
9 changed files
with
98 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This add-on allows to scan a given URL with multiple virus scanners. | ||
VirusTotal provides this service. | ||
See <a href="https://www.virustotal.com/">https://www.virustotal.com/</a>. | ||
Right click on the URL. | ||
Select VirusTotal Scan. | ||
Observe the scan results. | ||
By default the scan results are displayed in a new window. | ||
A new tab display configuration option is available. | ||
|
||
This add-on requests the following permissions. | ||
<ul> | ||
<li>Access your data for virustotal.com in order to perform the scan.</li> | ||
<li>Display notifications to you in order to display progress or errors.</li> | ||
</ul> | ||
For issues such as bugs, feature requests, questions, problem support, or suggestions use <a href="https://github.com/2000me/vtscan/issues">https://github.com/2000me/vtscan/issues</a>. | ||
|
||
Contributions such as localizations are welcome as pull requests. | ||
<a href="https://github.com/2000me/vtscan/pulls">https://github.com/2000me/vtscan/pulls</a>. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# vtscan | ||
Add-on: Scan URL with VirusTotal | ||
|
||
This add-on allows to scan a given URL with multiple virus scanners. VirusTotal provides this service. See https://www.virustotal.com/. Right click on the URL. Select VirusTotal Scan. Observe the scan results in a new window. | ||
This add-on allows to scan a given URL with multiple virus scanners. VirusTotal provides this service. See https://www.virustotal.com/. Right click on the URL. Select VirusTotal Scan. Observe the scan results. By default the scan results are displayed in a new window. A new tab display configuration option is available. | ||
|
||
![Context menu](AMO/vtscan.png) | ||
![Context menu](AMO/vtscan.png) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const translate = (function() { | ||
const nodes = document.querySelectorAll("[data-i18n]"); | ||
nodes.forEach( | ||
function(node) { | ||
node.textContent = browser.i18n.getMessage( | ||
node.getAttribute('data-i18n') | ||
) | ||
} | ||
) | ||
}); | ||
|
||
window.addEventListener('DOMContentLoaded', (event) => { | ||
translate(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
if (localStorage.getItem("TabOrWindow") == null) { | ||
localStorage.setItem("TabOrWindow", "w"); | ||
} | ||
|
||
if (localStorage.getItem("TabOrWindow") == "w") { | ||
document.getElementById("optionWindow").checked = true; | ||
} else { | ||
document.getElementById("optionTab").checked = true; | ||
} | ||
|
||
document.getElementById("optionTab").addEventListener("click", function(){ | ||
localStorage.setItem("TabOrWindow", "t"); | ||
}); | ||
document.getElementById("optionWindow").addEventListener("click", function(){ | ||
localStorage.setItem("TabOrWindow", "w"); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<script src="js/i18n.js"></script> | ||
</head> | ||
<body> | ||
<form> | ||
<label data-i18n="options_resultsDisplayLabel"></label> | ||
<input type="radio" name="resultsDisplayOption" id="optionTab"> | ||
<label data-i18n="option_tab"></label> | ||
<input type="radio" name="resultsDisplayOption" id="optionWindow"> | ||
<label data-i18n="option_window"></label> | ||
</form> | ||
<script src="js/options.js"></script> | ||
</body> | ||
</html> |