Skip to content

Instantly share code, notes, and snippets.

View Petalousa's full-sized avatar

Elijah MacDonald Petalousa

  • Carleton University
View GitHub Profile
@Petalousa
Petalousa / add_to_playlist.js
Created March 9, 2020 01:47
TamperMonkey add to playlist
// ==UserScript==
// @name YouTube add to playlist
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @include https://www.youtube.com/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Generic Key Listener
// @namespace http://tampermonkey.net/
// @version 0.1
// @description logs key events. useful for creating a script you want actived on a set of keys
// @author Petalousa
// @include *
// @grant none
// ==/UserScript==
# @author Petalousa
#
# This file pings google's dns (8.8.8.8) every second to confirm connectivity
# if a ping to google fails, the script will ping the router (192.168.0.1)
# - if it can connect, the failure to connect to google and successful connection to the router is logged
# - if it canot connect, the failure to connect to google and the router is logged
# if the script was previously unable to ping google and now is able to ping google, the success will be logged
#