Skip to content

Instantly share code, notes, and snippets.

View humantorch's full-sized avatar
🤘
Bees?

Scott Kosman humantorch

🤘
Bees?
View GitHub Profile

There are nine things you never want your coworkers and family to know about you: you're proficient in Access, BI Software, VB6, BizTalk, getting rid of bodies, fixing computers, building Powerpoint decks and setting up projectors or you own a truck.

Keybase proof

I hereby claim:

  • I am humantorch on github.
  • I am humantorch (https://keybase.io/humantorch) on keybase.
  • I have a public key whose fingerprint is 43B9 D799 0D5E A7B8 1098 34A6 6283 4A3D 74EC 604B

To claim this, I am signing this object:

/* hide EU cookie notifications because seriously SHUT UP ALREADY */
#cookieChoiceInfo, .cc_banner-wrapper, .privacybanner_notice, .caption-cookie, #cookie_box, ._ovg3g, ._njmhc, #newsNotification, #fp_cookieMessageContainer, .future-cookie-bar {
display: none;
}
/* make twitter.com suck less */
div[data-component-term="trends"], .promoted-tweet, .promoted-account, .wtf-module, .module.trends, .promoted-trend, #UnauthCallout #ad, .drip-tab-container, .siderail-container.siderail-related-tweets-container, #at-share-dock, #at4-share, #at-cv-lightbox, #paPontonCore, .wrapper .popup, .has-takeover, .future-cookie-bar, .above-header, #top .node-type-article iframe, #taboola-belowarticlethumbnails-mix, .trc_rbox_container, .future-inline-cta, #sihp-lrec.sihp-sidebar-module, li.js-moments-tab {
display: none;
}
@humantorch
humantorch / http_accept_language.php
Last active February 26, 2021 21:37
Compare supported languages with HTTP_ACCEPT_LANGUAGE in a users' browser.
<?php
// Languages we support
$available_languages = array("zh-cn", "ca", "es", "fr", "af","nl", "sp", "en");
$default_language = "en"; // a default language to fall back to in case there's no match
function prefered_language($available_languages, $http_accept_language) {
global $default_language;
$available_languages = array_flip($available_languages);
// ==UserScript==
// @name yh fixed nav
// @namespace http://userstyles.org
// @description Sets the YH! navigation as a fixed div.
// @author berge
// @homepage http://userstyles.org/styles/14283
// @include http://yayhooray.com/*
// @include https://yayhooray.com/*
// @include http://*.yayhooray.com/*
// @include https://*.yayhooray.com/*
// ==UserScript==
// @name Anti Hotkey
// @namespace http://files.evdawg.com/yay/
// @description Removes q-b, q-u, etc hotkeys from Yay Hooray
// @include http://*yayhooray.com*
// ==/UserScript==
var allDivs, thisDiv;
allDivs = document.evaluate(