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
function deepQuerySelectorAll(actual, selector){ | |
var results = []; | |
// search for children | |
if (actual.shadowRoot != null){ | |
deepQuerySelectorAll(actual.shadowRoot, selector).forEach( el => results.push(el)); | |
} | |
if (actual.children !=null){ | |
Array.from(actual.children).forEach( |
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
if (! window.readablePasswordDictionary){ | |
window.readablePasswordDictionary = []; | |
} | |
// you can also provide custom ones, by adding another language set | |
window.readablePasswordDictionary['de'] = | |
[ | |
'Anfrage', 'Bestellung', 'Produkt', 'Adam', 'Entdeckung', 'gewisse', 'Gewissen', | |
'Zeit', 'Socken', 'super', 'Deutschland', 'Berlin', 'Hannover', 'Hamburg', | |
'zusammen', 'sicher', 'genauso', 'gegen', 'entgegen', 'exzellent', 'aktuell', 'Feier', | |
'Gestaltung', 'Event', 'eventuell', 'geradeaus', 'Inspektion', 'Sicherheit', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<h1>Hello, world</h1> | |
</body> |
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
// intercepts AJAX and fetch calls and provides a global status on open calls | |
var AjaxFetchWatcher = {}; | |
AjaxFetchWatcher.countOfOpenRequests = 0; | |
AjaxFetchWatcher.stillOpen = function(){ | |
return AjaxFetchWatcher.countOfOpenRequests > 0; | |
}; | |
// intercept AJAX |
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
// copy and paste this into the web console (open with F12) | |
// setup the text of the invitation and the "load more" button based on your language | |
// don't set the delay too low or you will be banned | |
// in test | |
var invitationButton = 'Einladen'; | |
var loadMoreButton = 'Mehr anzeigen'; | |
function Sleep(milliseconds) { |
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
function getAllVariables(){ | |
var searchVarByValue = function(searchString){ | |
var values = Object.keys(this.ValueToVar); | |
var findings = []; | |
for (var i=0; i< values.length; i++){ | |
if (values[i] == undefined) | |
continue; | |
var position = values[i].toLowerCase().indexOf(searchString.toLowerCase()); | |
if (position != -1){ | |
findings.push({ 'variable': this.ValueToVar[values[i]], 'value' : values[i] }); |
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
// using USPS Barcode Construct N04 | |
// padding function, if not available | |
Object.prototype.pad = function(size) { | |
var targetHelper = String(this); | |
if (targetHelper.length<size){ | |
targetHelper = Array((size - targetHelper.length)+1).join("0") + targetHelper; | |
} | |
return targetHelper; | |
} |