Skip to content

Instantly share code, notes, and snippets.

twitch-videoad.js application/javascript
(function() {
if ( /(^|\.)twitch\.tv$/.test(document.location.hostname) === false ) { return; }
var realFetch = window.fetch;
window.fetch = function(input, init) {
if ( arguments.length >= 2 && typeof input === 'string' && input.includes('/access_token') ) {
var url = new URL(arguments[0]);
url.searchParams.forEach(function(value, key) {
url.searchParams.delete(key);
});
@seizo3
seizo3 / Scratch.hs
Created October 19, 2017 16:42
This is a set of functions/data structures I wrote while learning more about haskell and recursion, I referred back to it often mostly for syntax.
module Scratch where
import Control.Monad
import Data.Char
import Data.List (genericLength)
import Data.Maybe (fromJust)
-- creates a palindrome of a list
palindrome :: [a] -> [a]
palindrome xs = xs ++ reverse xs
#!/bin/bash
# test if the user is root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
if [ -z "$1" ]
then

Keybase proof

I hereby claim:

  • I am seizo3 on github.
  • I am seizo (https://keybase.io/seizo) on keybase.
  • I have a public key ASBzAfUiZS2EI08IYg_IM_klVXX_GjpRXFvyrp4R2L9wDAo

To claim this, I am signing this object: