This file contains hidden or 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
/** | |
* @usage copy and paste into dev console at URL: | |
* https://www.amazon.com/alexa-privacy/apd/rvh | |
* @todo scroll to bottom to load more recordings once all loaded | |
* recordings are tested and the desired recordings are deleted. | |
*/ | |
(function(document) { | |
const CLICK_DELAY = 500 | |
const DELETE_BTN_SELECTOR = '.record-delete-banner.clickable' |
This file contains hidden or 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
/** | |
* CSS Global Variables for colors in the Material Design palette | |
* @author Sinan Bolel <[email protected]> | |
* @see {@link https://material.io/design/color/the-color-system.html#color-usage-and-palettes} | |
* @see {@link https://material.io/resources/color} | |
*/ | |
:root { | |
--md-color-red-50: #ffebee; | |
--md-color-red-100: #ffcdd2; | |
--md-color-red-200: #ef9a9a; |
This file contains hidden or 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
/** | |
* CSS Global Variables for colors in the Material Design palette | |
* @author Sinan Bolel <[email protected]> | |
* @see {@link https://material.io/design/color/the-color-system.html#color-usage-and-palettes} | |
* @see {@link https://material.io/resources/color} | |
*/ | |
:root { | |
--md-color-red-50: #ffebee; | |
--md-color-red-100: #ffcdd2; | |
--md-color-red-200: #ef9a9a; |
This file contains hidden or 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 is the background code... | |
// listen for our browerAction to be clicked | |
chrome.browserAction.onClicked.addListener(function (tab) { | |
// for the current tab, inject the "inject.js" file & execute it | |
chrome.tabs.executeScript(tab.ib, { | |
file: 'inject.js' | |
}); | |
}); |
This file contains hidden or 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
/** | |
* Script that deletes all Google Voice items visible in the current list. | |
* @param {number} timeout - milliseconds to wait between each dialog opening. | |
* @usage copy and paste into JS console. | |
*/ | |
(function(timeout){ | |
const getConfirm = () => document.querySelector('[gv-test-id="dialog-confirm-button"]') | |
const getDelete = () => document.querySelector('[icon-name="delete"]') | |
const getFirst = () => document.querySelector('[gv-test-id="conversation-avatar-or-checkmark"]') | |
const getRest = () => document.querySelectorAll('div[md-virtual-repeat]').splice(0, 1) |
This file contains hidden or 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
/* | |
1337 Translator | |
"Leet" or "1337" is a popular alternative alphabet used by internet geeks. | |
Create a translator function that takes a string and outputs that string translated to leet | |
Leet Codex: | |
A -> @ | |
B -> 8 |
This file contains hidden or 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(_document, key, btn, delay, multiplier){ | |
const _plusOrMinus = () => Math.random() < 0.5 ? -1 : 1 | |
const _randomTimeout = () => (_plusOrMinus() * Math.floor((Math.random() * multiplier))) + delay | |
this.run = false | |
const toggle = () => { | |
this.run = !this.run | |
if (this.run) setNext() | |
} |
This file contains hidden or 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
# Blocklist for scripts appearing in data release for: https://freedom-to-tinker.com/2018/04/18/no-boundaries-for-facebook-data-third-party-trackers-abuse-facebook-login/ | |
# "No boundaries for Facebook data: third-party trackers abuse Facebook Login" | |
# Data release: https://gist.github.com/englehardt/bf976e6b90f44f735749014a7a4a48b6 | |
api.behavioralengine.com | |
c.lytics.io | |
cdn.augur.io | |
cdn4.forter.com | |
p1.ntvk1.ru | |
srv.clickfuse.com | |
st-a.props.id |
This file contains hidden or 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
#!/bin/sh | |
# Downloads a Chrome extensions source. | |
# @param {string} extension_id - the id in the url for the extension | |
if [[ $# == 0 ]]; then | |
printf "Enter the ID of the extension: " | |
read -r extension_id | |
else | |
extension_id=$1 |
This file contains hidden or 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
#!/usr/bin/env bash | |
# forward localhost:8000 to localhost:3000 | |
echo "rdr pass on lo0 inet proto tcp from any to 127.0.0.1 port 8000 -> 127.0.0.1 port 3000" | sudo pfctl -ef - | |
# remove it | |
sudo pfctl -F all -f /etc/pf.conf |