Skip to content

Commit 7547c97

Browse files
committed
Add site checkers
1 parent 9355757 commit 7547c97

File tree

7 files changed

+24
-0
lines changed

7 files changed

+24
-0
lines changed

javascripts/Check CSS with W3C.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://jigsaw.w3.org/css-validator/validator?uri=' + encodeURIComponent(location.href), '_blank').focus();

javascripts/Check HTML with W3C.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://validator.w3.org/nu/?doc=' + encodeURIComponent(location.href), '_blank').focus();

javascripts/Check feed with W3C.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://validator.w3.org/feed/check.cgi?url=' + encodeURIComponent(location.href), '_blank').focus();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://validator.w3.org/i18n-checker/check?uri=' + encodeURIComponent(location.href), '_blank').focus();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://validator.w3.org/checklink?uri=' + encodeURIComponent(location.href), '_blank').focus();
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
window.open('https://transparencyreport.google.com/safe-browsing/search?url=' + encodeURIComponent(location.href), '_blank').focus();

javascripts/Search IMDb.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"use strict";
2+
var selection;
3+
if (window.getSelection) {
4+
selection = window.getSelection().toString();
5+
} else if (document.selection && document.selection.type !== "Control") {
6+
selection = document.selection.createRange().text;
7+
}
8+
if (selection === undefined || selection.length === 0) {
9+
window.alert('Select the desired text to search.');
10+
} else {
11+
window.open('https://www.imdb.com/find/?q=' + encodeURIComponent(selection.trim()), '_blank').focus();
12+
}

0 commit comments

Comments
 (0)