Last active
August 29, 2015 13:56
-
-
Save asimpson/8807828 to your computer and use it in GitHub Desktop.
Userstyle for the new "flat" Twitter.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
var jQueryLoader = function() { | |
var watcherID; | |
if (!(typeof $ === 'undefined')) { | |
clearInterval(watchJqueryLoader); | |
$("head").append("<meta name='viewport' content='width=device-width,initial-scale=1.0'>"); | |
} | |
} | |
var watchJqueryLoader = setInterval(jQueryLoader, 100); | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* your source here */ | |
.instapaper-link a{ | |
background-image: url(data:image/gif;base64,R0lGODlhEAAQANUAABpI9UtP7NPa+0KE+4uK8Ux0+CJM9LnK/DNc9xEo7XSU+TRt+sTS/N7l/AcK3o6r+itl+RkY6DU066S5+miN+Tl1+vn+/z19+yxc9wIC3y9U9CRT9kaK+yBE8jhz+ioq6/T2/Tx6+i1M8yte+C5s+jdw+nd28Tx3+g8Q5Oft/Ozs+0CA+yZZ+EI/6Thf9jBo+Thl+Dhj9w0a4vr3/GNj72128SI06a/E+woL516K+sjI+MnY/D1w+f///gAA5v///yH5BAAAAAAALAAAAAAQABAAAAbBQNho+HqUFp5TaDUYcDgxDIZ1E7wWpcrpwnzGWJvJjwG5ZkNcJ8Iw6f1+Bx6k5Kmgm4j2+y0ozJNLAwoMB3tvKTkQJCRoKy4ABoWGIAo5Bw8VFxoGBggNhj89PTsnFSubBgAFIIY9DAsLIRioqRRubw1zIwk+Ih2cGwAPuBYKCTg+vb+cqj87HTUzLcnKvxoFDAIBGREmKhI+KL4dHRoBBBERKBLdDQERNjIODi0ZPhIoKB8fETQ6+BkCUhtITQKBIAA7) !important; | |
padding-left:20px; | |
background-repeat:no-repeat !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){window.pinboard={loadLink:function(){return $(".js-tweet-text .twitter-timeline-link").each(function(index,Element){var $parent,link,linkText,linkTextEncoded,theLink;$parent=$(Element).parents(".content");link=encodeURIComponent($(Element).attr("data-expanded-url"));linkText=$(Element).attr("data-expanded-url");linkTextEncoded=encodeURIComponent(linkText);theLink="<a href=\"javascript:void(t=open('https://pinboard.in/add?later=yes&noui=yes&jump=close&url="+link+"&title="+linkText+"','Pinboard','toolbar=no,width=100,height=100'));t.blur();\">Pinboard</a>";if($parent.children(".instapaper-link").length<$(".js-tweet-text .twitter-timeline-link",$parent).length){return $parent.append('<div class="instapaper-link">'+theLink+" ("+linkText+")</div>")}})},watcher:function(){if($(".tweet").length>pinboard.tweetNumber){return pinboard.loadLink()}},jQueryLoader:function(){var watcherID;if(!(typeof $==="undefined")){clearInterval(pinboard.watchJqueryLoader);pinboard.loadLink();pinboard.tweetNumber=$(".tweet").length;return watcherID=setInterval(pinboard.watcher,5e3)}},init:function(){return pinboard.watchJqueryLoader=setInterval(pinboard.jQueryLoader,100)}};window.onload=pinboard.init()}).call(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.dashboard { | |
width: 100% !important; | |
float: none !important; | |
} | |
.wtf-module { | |
display: none !important; | |
} | |
.trends { | |
display: none !important; | |
} | |
.Footer { | |
display: none !important; | |
} | |
#timeline { | |
width: 100% !important; | |
} | |
.wrapper { | |
width: 100% !important; | |
} | |
.global-nav-inner > .container { | |
min-width: 0 !important; | |
} | |
#page-container { | |
padding-left: 0 !important; | |
padding-right: 0 !important; | |
} | |
.promoted-tweet, #user-dropdown { | |
display: none !important; | |
} | |
.modal { | |
width: 100% !important; | |
} | |
#discover-stories, .profile-card { | |
width: 100% !important; | |
} | |
.route-home .profile-summary, .route-home .content-header { | |
display: none !important; | |
} | |
.route-profile .enhanced-media-thumbnails { | |
display: none !important; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment