Skip to content

Instantly share code, notes, and snippets.

Avatar

Ethan Marcotte beep

View GitHub Profile
View lighthouse-bookmarklet.js
// Modified from Jeremy Keith’s lovely bookmarklet: https://adactio.com/journal/16523
javascript:(function(){open('https://googlechrome.github.io/lighthouse/viewer/?psiurl='+escape(document.location)+'&strategy=mobile&category=performance&category=accessibility&category=best-practices&category=seo&category=pwa', 'test__lighthouse')})();
@beep
beep / mute engagement keywords on twitter.txt
Created Jan 4, 2020
A list of terms to mute that should hide auto-suggested content from Twitter (courtesy of Andrew Parsons)
View mute engagement keywords on twitter.txt
// https://twitter.com/adrparsons/status/1212610661907189760
suggest_grouped_tweet_hashtag
suggest_recap
suggest_recycled_tweet
suggest_recycled_tweet_inline
suggest_pyle_tweet
suggest_ranked_timeline_tweet
suggest_who_to_follow
suggest_activity_tweet
@beep
beep / ublock-twitterneue.txt
Last active Jul 14, 2020
uBlock Origin rules for new twitter website
View ublock-twitterneue.txt
# hides engage-y modules from the rightmost sidebar
twitter.com##[data-testid="sidebarColumn"] div[aria-label]
twitter.com##[data-testid="sidebarColumn"] div:has(> aside[aria-label])
# hides promoted tweets
twitter.com##article :has(svg[d="M20.75 2H3.25C2.007 2 1 3.007 1 4.25v15.5C1 20.993 2.007 22 3.25 22h17.5c1.243 0 2.25-1.007 2.25-2.25V4.25C23 3.007 21.993 2 20.75 2zM17.5 13.504c0 .483-.392.875-.875.875s-.875-.393-.875-.876V9.967l-7.547 7.546c-.17.17-.395.256-.62.256s-.447-.086-.618-.257c-.342-.342-.342-.896 0-1.237l7.547-7.547h-3.54c-.482 0-.874-.393-.874-.876s.392-.875.875-.875h5.65c.483 0 .875.39.875.874v5.65z"])
# Hides "so-and-so liked" tweets
# (Grazie, @ phyllisstein! https://gist.github.com/9d78b409c54dd33d6722c0ed5e45c8b2#gistcomment-3084106)
twitter.com##article :has(path[d="M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12z"]):has(a:h
View keybase.md

Keybase proof

I hereby claim:

  • I am beep on github.
  • I am beep (https://keybase.io/beep) on keybase.
  • I have a public key whose fingerprint is C0BE C4AD 15E0 073D 6E29 D58E 6223 E5ED D962 3168

To claim this, I am signing this object:

You can’t perform that action at this time.