Skip to content

Instantly share code, notes, and snippets.

Avatar

Grant Hutchinson splorp

View GitHub Profile
@splorp
splorp / discogs_nab_original_image.js
Last active Jan 29, 2021
Nab Full Resolution Images From Discogs
View discogs_nab_original_image.js
if (domain === "img.discogs.com") {
//
// From @gertcha on GitHub: https://github.com/qsniyg/maxurl/issues/429
// Source URI:
// https://img.discogs.com/MjmbFRJJih89NH1vTPzlL4hV-8Q=/fit-in/600x600/filters:strip_icc():format(jpeg):mode_rgb():quality(90)/discogs-images/R-12801670-1542565929-6791.jpeg.jpg
// Modified URI:
// https://www.discogs.com/image/R-12801670-1542565929-6791.jpeg
//
return src.replace(/^[a-z]+:\/\/[^/]+\/[^/]+=\/.*\/discogs-images\/([^/?#]+)\.[^/.]+(?:[?#].*)?$/, "https://www.discogs.com/image/$1");
}
View eewhee.md
@splorp
splorp / valentinevolvo.css
Created Mar 27, 2019
Valentine Volvo Desalesifier
View valentinevolvo.css
/* ============================================================================ */
/* Custom styles for valentinevolvo.com */
/* Grant Hutchinson (@splorp) */
/* */
/* Removes annoying live sales chat tabs, boxes, popups, and cruft. */
/* ============================================================================ */
#di-proactive-container,
#di-reactive-container-left,
#di-reactive-container-right {
@splorp
splorp / discogs.css
Created Dec 24, 2018
Discogs Bo Diddley
View discogs.css
/* ============================================================================ */
/* Custom styles for discogs.com */
/* Grant Hutchinson (@splorp) */
/* */
/* Adjust the width of lists on release pages. */
/* ============================================================================ */
ol, ul, p {
max-width: none;
}
@splorp
splorp / fontsinuse.css
Created Nov 12, 2018
Fonts In Use Ads In Trash
View fontsinuse.css
/* ============================================================================ */
/* Custom styles for fontsinuse.com */
/* Grant Hutchinson (@splorp) */
/* */
/* Remove inline ads and sponsor banners. Sorry, Stewf. */
/* ============================================================================ */
.fiu-sponsor,
.fiu-gallery-ad {
display: none !important;
@splorp
splorp / canadapost.css
Last active Nov 13, 2018
Canada Post Form Field Font Fix
View canadapost.css
/* ============================================================================ */
/* Custom styles for canadapost.ca */
/* Grant Hutchinson (@splorp) */
/* */
/* Set the font-family for printable form fields so the text doesn’t get */
/* borked when the user (me) has changed the default system font. Also, */
/* change some of the nearly unreradable grey text to black for printing. */
/* ============================================================================ */
input {
@splorp
splorp / wired.css
Created Jul 4, 2018
Wired Evil Veil Remover
View wired.css
#veil {
display: none;
}
@splorp
splorp / obfucate.md
Last active Mar 30, 2018
Regex Email Address Obfuscation
View obfucate.md

Find:

([a-zA-Z0-9])[a-zA-Z0-9\.\-\+\_\$]+\@([a-zA-Z0-9])[a-zA-Z0-9\.\-\+\_]+\.([a-zA-Z0-9]+)

Replace:

\1____@\2____.\3
@splorp
splorp / github.css
Last active Jul 4, 2018
GitHub Better Follow Button
View github.css
/* ============================================================================ */
/* Custom styles for github.com */
/* Grant Hutchinson (@splorp) */
/* ============================================================================ */
button[title~="Follow"].btn {
color: #EEF;
background-color: #4078c0;
background-image: none;
}