Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 72a9ff8

Browse files
♻️ Refactored snippets & menu
1 parent 557fa69 commit 72a9ff8

File tree

8 files changed

+94
-100
lines changed

8 files changed

+94
-100
lines changed

‎extension/js/menu.js

Lines changed: 87 additions & 89 deletions
Large diffs are not rendered by default.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
var inputs = document.querySelectorAll('input');
1+
const inputs = document.querySelectorAll('input');
22
for (let i = 0; i < inputs.length; i++) {
3-
if(typeof inputs[i].onpaste === 'function'){
4-
inputs[i].onpaste= new function(){};
3+
if(typeof inputs[i].onpaste === 'function'){
4+
inputs[i].onpaste= new function(){};
55
}
66
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
console.log(JSON.stringify(JSON.parse(prompt("Enter JSON to minify to console", ""))))

‎extension/js/web/dom/sortTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function makeHeaderLink(tableNo, colNo, ord) {
2222
var link;
2323
link = document.createElement('a');
2424
link.href = 'javascript:sortTable(' + tableNo + ',' + colNo + ',' + ord + ');';
25-
link.appendChild(document.createTextNode((ord > 0) ? 'a' : 'd'));
25+
link.appendChild(document.createTextNode((ord > 0) ? 'asc ' : ' desc'));
2626
return link;
2727
}
2828

‎extension/js/web/help/about.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
window.open("https://github.com/thomaschaplin/webdriverio")
1+
window.open("https://github.com/thomaschaplin/snippet-library")

‎extension/js/web/help/version.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alert("Version: 1.0.0")

‎extension/js/web/validation/removePasteRestrictions.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /