Skip to content

Instantly share code, notes, and snippets.

View kmhcreative's full-sized avatar

kmhcreative

View GitHub Profile
@kmhcreative
kmhcreative / mastodon_big_previews.css
Created December 24, 2022 19:02
Big Link Previews on Every Mastodon Instance
/* MASTODON BIG PREVIEWS EVERYWHERE
================================
Safari does not understand @-moz-document or @-document
so this targets the main #mastodon element and should
work on EVERY Mastodon instance there is.
* Chrome & Firefox: copy & paste into "Stylus" add-on/extension
* Firefox: use or paste into userContent.css file
* Safari: Point Preferences, Advanced, Stylesheet to a .css file
with this code in it.
*/
@kmhcreative
kmhcreative / sniffer.js
Last active September 20, 2015 20:28
Web-O-Detecto - a browser and platform sniffer for web-apps
/*
WEB-O-DETECTO
Version 1.0
URI: https://gist.github.com/kmhcreative/cc73f6a5da2e0919432f
======== DESCRIPTION =========
Feature Detection is best, however browser quirks and bugs
still force sniffing UA strings to make webapps work, but
the strings can also be spoofed and some browsers purposely