Make sure you have the minimum dependencies (e.g. you have run yarn add selenium-webdriver
), and edit the file with your chromedriver bin info.
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 objectToConsoleGroup(myObject,OPT_Name){ | |
var outerName = (OPT_Name||"Results"); | |
var done = false; | |
function main(prop,val){ | |
if (typeof(val)==="object" && !Array.isArray(val)){ | |
var thingObj = val; | |
if (typeof(prop)!=="undefined" && prop!==null){ | |
console.group("Object: " + prop); | |
} |
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
CREATE TABLE IF NOT EXISTS `keys` ( | |
`DEC` INTEGER NOT NULL UNIQUE, | |
`OCT` TEXT NOT NULL UNIQUE, | |
`HEX` TEXT NOT NULL UNIQUE, | |
`BIN` TEXT NOT NULL UNIQUE, | |
`Symbol` TEXT, | |
`HtmlNumber` TEXT, | |
`HtmlName` TEXT, | |
`Description` TEXT, | |
PRIMARY KEY(`DEC`) |
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
<?xml version='1.0' encoding='UTF-8' standalone='yes' ?> | |
<data version="1.36.0"> | |
<trigger type="general_broadcast"> | |
<useDefaultName>true</useDefaultName> | |
<name>General Broadcast: on globalflicintent-home</name> | |
<enabled>true</enabled> | |
<action>globalflicintent-home</action> | |
<categoryList></categoryList> | |
<dataSchemeList></dataSchemeList> | |
<dataAuthorityList></dataAuthorityList> |
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
var checkboxes = document.querySelectorAll('form[name="f"][method="POST"] table td > input[type="checkbox"]').forEach(function(c){ | |
c.checked = true; | |
}); | |
var deleteAllForever = document.querySelector('input[type="submit"][value="Delete Forever"]'); | |
var deleteAll = document.querySelector('input[type="submit"][value="Delete"]'); | |
deleteAllForever ? deleteAllForever.click() : deleteAll.click(); |
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
<!-- Use this to set the list of IP addresses you DONT want your tags loading for --> | |
<?php $blockTagsFor = array('216.3.128.12','19.117.63.126','2001:0db8:85a3:0000:0000:8a2e:0370:7334'); ?> | |
<?php if (in_array($_SERVER['REMOTE_ADDR'],$blockTagsFor,false)==false): ?> | |
<!-- Put all the tags you want to conditionally load here. GA example below: --> | |
<!-- Global Site Tag (gtag.js) - Google Analytics --> | |
<script async src="https://www.googletagmanager.com/gtag/js?id=GA_MEASUREMENT_ID"></script> | |
<script> |
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(){ | |
function httpFetchVanilla(url,method,callback,OPT_failCallback){method="string"==typeof method&&""!==method?method:"GET",callback="function"==typeof callback?callback:function(){},failCallback="function"==typeof OPT_failCallback?OPT_failCallback:function(){console.warn("httpFetchVanilla failed")};var t=new XMLHttpRequest;t.onreadystatechange=function(){4==t.readyState&&(200==t.status?callback(t.responseText):failCallback())},t.open(method,url,!0),t.send()} | |
function setCookie(name, value, days) { | |
var d = new Date; | |
d.setTime(d.getTime() + 24*60*60*1000*days); | |
document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString(); | |
} |
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
@echo off | |
cls | |
REM # Find and kill the dropbox process | |
taskkill /FI "IMAGENAME eq Dropbox.exe" /F | |
REM # Wait a little | |
@echo on | |
cls | |
echo "Please wait while restarting Dropbox" | |
@echo off | |
SLEEP 5 |
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
/** | |
* @author Joshua Tzucker | |
* @file A reusable script to download a remote file, usually to have as a dependency, that for some reason can't be fetched through NPM | |
*/ | |
/** | |
* File should be called with arguments: | |
* file_downloader.js remote_file local_folder_to_save_to [newFileName="foobar.js"][forceReDownload=FALSE] [fileHash="sha256-adsfasfd"] | |
* fileHash should be base64 - follow rule of SRI - https://developer.mozilla.org/en-US/docs/Web/Security/Subresource_Integrity | |
* Example: |
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
let vidPopped = false; | |
document.querySelectorAll('video').forEach(vid => { | |
// Override disabling features | |
vid.removeAttribute('disablepictureinpicture'); | |
vid.disablePictureInPicture = false; | |
// Only pop right away if video is playing, or on Hulu | |
if ((!vid.paused || vid.id === 'content-video-player') && !vidPopped) { | |
if (typeof vid.requestPictureInPicture === 'function') { | |
vid.requestPictureInPicture() | |
.then(() => { |
OlderNewer