-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
57 additions
and
85 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
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,4 +1,4 @@ | ||
"use strict"; | ||
if (document.oncontextmenu) { | ||
document.oncontextmenu = null; | ||
document.oncontextmenu = null; | ||
} |
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
"use strict"; | ||
var selection; | ||
if (window.getSelection) { | ||
selection = window.getSelection().toString(); | ||
selection = window.getSelection().toString(); | ||
} else if (document.selection && document.selection.type !== "Control") { | ||
selection = document.selection.createRange().text; | ||
selection = document.selection.createRange().text; | ||
} | ||
if (selection === undefined) { | ||
window.alert("Select the desired text."); | ||
window.alert('Select the desired text.'); | ||
} else { | ||
selection = selection.trim(); | ||
var url; | ||
if (selection.match(/^cve\-\d+\-\d+$/i)) { | ||
url = "https://nvd.nist.gov/vuln/detail/" + selection; | ||
} else if (selection.match(/^\d+\-\d+$/)) { | ||
url = "https://nvd.nist.gov/vuln/detail/CVE-" + selection; | ||
} else { | ||
window.alert("Selection is not a valid CVE number."); | ||
} | ||
if (url !== undefined) { | ||
window.open(url, "_blank").focus(); | ||
} | ||
selection = selection.trim(); | ||
var url; | ||
if (selection.match(/^cve\-\d+\-\d+$/i)) { | ||
url = 'https://nvd.nist.gov/vuln/detail/' + selection; | ||
} else if (selection.match(/^\d+\-\d+$/)) { | ||
url = 'https://nvd.nist.gov/vuln/detail/CVE-' + selection; | ||
} else { | ||
window.alert('Selection is not a valid CVE number.'); | ||
} | ||
if (url !== undefined) { | ||
window.open(url, '_blank').focus(); | ||
} | ||
} |
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,30 +1,17 @@ | ||
"use strict"; | ||
var pieces = location.href.split("/"); | ||
var pieces = location.href.split('/'); | ||
var i; | ||
var coordinates; | ||
for (i = 0; i < pieces.length; i += 1) { | ||
if (pieces[i].startsWith("@")) { | ||
pieces = pieces[i].substring(1).split(","); | ||
coordinates = pieces[0] + "," + pieces[1] + ",19"; | ||
break; | ||
} | ||
if (pieces[i].startsWith('@')) { | ||
pieces = pieces[i].substring(1).split(','); | ||
coordinates = pieces[0] + ',' + pieces[1] + ',19'; | ||
break; | ||
} | ||
} | ||
if (coordinates === undefined || coordinates === null) { | ||
window.alert("Current Google Maps URL does not contain coordinates."); | ||
window.alert('Current Google Maps URL does not contain coordinates.'); | ||
} else { | ||
var now = new Date(); | ||
location.href = | ||
"https://www.suncalc.org/#/" + | ||
coordinates + | ||
"/" + | ||
now.getFullYear() + | ||
"." + | ||
(now.getMonth() + 1) + | ||
"." + | ||
now.getDate() + | ||
"/" + | ||
now.getHours() + | ||
":" + | ||
now.getMinutes() + | ||
"/1/3"; | ||
var now = new Date(); | ||
location.href = 'https://www.suncalc.org/#/' + coordinates + '/' + now.getFullYear() + '.' + (now.getMonth() + 1) + '.' + now.getDate() + '/' + now.getHours() + ':' + now.getMinutes() + '/1/3'; | ||
} |
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,4 +1,2 @@ | ||
"use strict"; | ||
location.href = | ||
"https://www.ssllabs.com/ssltest/analyze.html?d=" + | ||
encodeURIComponent(location.hostname); | ||
location.href = 'https://www.ssllabs.com/ssltest/analyze.html?d=' + encodeURIComponent(location.hostname); |
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,2 +1,2 @@ | ||
"use strict"; | ||
location.href = "https://web.archive.org/web/%2A/" + location.href; | ||
location.href = 'https://web.archive.org/web/%2A/' + location.href; |
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,4 +1,2 @@ | ||
"use strict"; | ||
location.href = | ||
"https://www.google.com/search?q=site%3A" + | ||
encodeURIComponent(location.hostname); | ||
location.href = 'https://www.google.com/search?q=site%3A' + encodeURIComponent(location.hostname); |
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,8 +1,8 @@ | ||
"use strict"; | ||
if (document.hasFocus()) { | ||
if (document.activeElement.value) { | ||
window.alert("Password: " + document.activeElement.value); | ||
} | ||
if (document.activeElement.value) { | ||
window.alert('Password: ' + document.activeElement.value); | ||
} | ||
} else { | ||
window.alert("Move cursor to desired password field."); | ||
window.alert('Move cursor to desired password field.'); | ||
} |
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 |
---|---|---|
@@ -1,3 +1,2 @@ | ||
"use strict"; | ||
location.href = | ||
"https://archive.today/submit/?url=" + encodeURIComponent(location.href); | ||
location.href = 'https://archive.today/submit/?url=' + encodeURIComponent(location.href); |
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,4 +1,2 @@ | ||
"use strict"; | ||
location.href = | ||
"https://translate.google.com/translate?langpair=auto%7Cen&u=" + | ||
encodeURIComponent(location.href); | ||
location.href = 'https://translate.google.com/translate?langpair=auto%7Cen&u=' + encodeURIComponent(location.href); |
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,10 +1,5 @@ | ||
"use strict"; | ||
var t = window.open("_blank").document; | ||
t.write( | ||
'<!DOCTYPE html><html lang="en"><head><title>Source</title><meta charset="utf-8"/></head><body/></html>', | ||
); | ||
var t = window.open('_blank').document; | ||
t.write('<!DOCTYPE html><html lang="en"><head><title>Source</title><meta charset="utf-8"/></head><body/></html>'); | ||
t.close(); | ||
t.body | ||
.appendChild(t.createElement("pre")) | ||
.appendChild(t.createElement("code")) | ||
.appendChild(t.createTextNode(document.documentElement.outerHTML)); | ||
t.body.appendChild(t.createElement('pre')).appendChild(t.createElement('code')).appendChild(t.createTextNode(document.documentElement.outerHTML)); |
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,3 +1,2 @@ | ||
"use strict"; | ||
location.href = | ||
"https://whois.domaintools.com/" + encodeURIComponent(location.hostname); | ||
location.href = 'https://whois.domaintools.com/' + encodeURIComponent(location.hostname); |