Skip to content

Instantly share code, notes, and snippets.

View pdincubus's full-sized avatar

Phil Steer pdincubus

View GitHub Profile

Keybase proof

I hereby claim:

  • I am pdincubus on github.
  • I am pdincubus (https://keybase.io/pdincubus) on keybase.
  • I have a public key ASDT2vyjWGcAl04SAJ1AaUgIrKebjWHtPECVJKtVA5wOtAo

To claim this, I am signing this object:

@pdincubus
pdincubus / fixTwitterEmbeddedTimelineStyles.js
Created February 28, 2014 14:52
Fed up of the lack of Twitter embedded timeline styling options? Hack it to bits.
//Assumes jQuery loaded
//Wait for the document and resources to finish loading
$(window).on('load', function() {
//wait a little longer to ensure the iframe is really finished loading
setInterval(function() {
//find the iframe, delve into its contents, and append a style block to the end of the head
//see that? Base64-encoded Twitter sprite too, because:
//apparently Twitter thinks that 'dark grey' for the 'light' theme,
//and 'a bit lighter grey' for the 'dark' theme is what everyone wants.
//you ever tried to see #a0a0a0 on rgb(33,135,124)?