Skip to content

Instantly share code, notes, and snippets.

@disinfeqt
disinfeqt / gist:2377300
Created April 13, 2012 14:35
Lik theme for Tumblr by disinfeqt
<html>
<head>
<title>{Title}</title>
<link rel="shortcut icon" href="http://static.tumblr.com/bwquhfx/1XSm3z7em/favicon.png">
<style type="text/css">
/* Version 1.3 */
*{margin:0;padding:0;}a{color:red;text-decoration:none;}a:hover{background:red;color:white;}body{font:13px/1.5 'Helvetica Neue', Arial, sans-serif;color:#333;}#likes_container{overflow:hidden}h2{font-size:20px;text-transform:uppercase;text-align:center;margin:10% 0;}#likes{overflow:hidden;list-style-type:none;max-width:1200px;margin:0 auto 5%;}.like_post{float:left;margin:0 0 50px;width:250px;}.like_post img{width:100%}.like_post blockquote{margin:0;padding:0 0 0 10px;border-left:1px solid #eee;}.like_post ol,.like_post ul{margin:0 0 0 15px;padding:0;}.like_post .like_link a{font-weight:bold}.like_post .like_title{font-weight:bold;margin:0 0 20px;color:#333;font-size:16px;}.like_post .post_info_bottom{margin:5px 0 0 0;display:block !important;font-size:11px;}.like_below_photo{height:5px;}.more,.copyright{margin:0 0 5%;font-size:11px;text-align:
@disinfeqt
disinfeqt / gist:2397092
Created April 16, 2012 08:36
animation.css
@-webkit-keyframes pulse {
50% {
color: rgba(0,0,0,.5);
}
100% {
color: rgba(255,255,255,.8);
}
}
@disinfeqt
disinfeqt / gist:2661094
Created May 11, 2012 17:16
No input[type=password]
!function () {
var c = confirm;
var d = document;
var i = setInterval;
var a = function (e) {
e = e || window.event;
var t = e.target || e.srcElement;
if (t.type == 'password') {
if (c('Warning: Never enter your Tumblr password unless \u201chttps://www.tumblr.com/login\u201d\x0ais the address in your web browser.\x0a\x0aYou should also see a green \u201cTumblr, Inc.\u201d identification in the address bar.\x0a\x0aSpammers and other bad guys use fake forms to steal passwords.\x0a\x0aTumblr will never ask you to log in from a user\u2019s blog.\x0a\x0aAre you absolutely sure you want to continue?')) {
a = function () {};
.btn {
position:relative;
display:inline-block;
overflow:visible;
padding:5px 10px;
font-size:13px;
font-weight:bold;
line-height:18px;
color:#333;
text-shadow:0 1px 0 rgba(255,255,255,.5);
<script>
function bust () {
document.write = "";
window.top.location = window.self.location;
setTimeout(function() {
document.body.innerHTML = '';
}, 0);
window.self.onload = function(evt) {
document.body.innerHTML = '';
};
(function () {
function h(a, b) {
return [].slice.call((b || document).querySelectorAll(a))
}
if (window.addEventListener) {
var e = window.StyleFix = {
link: function (a) {
try {
if ("stylesheet" !== a.rel || a.hasAttribute("data-noprefix")) return
} catch (b) {
$(function(){
var spacing = 0,
shouldAnimate = $.browser.webkit || $.browser.mozilla, //$("html").hasClass("csstransitions"),
isAnimating = false;
var _scrollbarWidth = null
var scrollbarWidth = function() {
if (_scrollbarWidth != null)
return _scrollbarWidth;
javascript:(function(e,a,g,h,f,c,b,d){if(!(f=e.jQuery)||g>f.fn.jquery||h(f)){c=a.createElement("script");c.type="text/javascript";c.src="http://ajax.googleapis.com/ajax/libs/jquery/"+g+"/jquery.min.js";c.onload=c.onreadystatechange=function(){if(!b&&(!(d=this.readyState)||d=="loaded"||d=="complete")){h((f=e.jQuery).noConflict(1),b=1);f(c).remove()}};a.documentElement.childNodes[0].appendChild(c)}})(window,document,"1.7",function($,L){var playlists = [];$("body > .Menu").remove();$(".TrackList .Track:first").find('.ActionMenu.pill').trigger('click');$("body > .Menu:first").find(".scroller.vertical").find(".embedded").find("li[title=" + name + "]").trigger('click');$(".menu_click_shield").trigger('click');$("body > .Menu .scroller.vertical .embedded li").each(function(){ playlists.push($(this).attr('title').trim());});$("body > .Menu").remove();var add_playlist_index = [];$(".horizontal .ActionMenu.toolbar").append('<button class="button add_to_playlist" style="display: none;">Add To Playlist</a>');$("button.
.js-mini-profile-stat {
font-size: 0;
}
.js-mini-profile-stat::after {
content: attr(title);
font-size: 20px;
}
javascript:(function(){document.location.href='https://chart.googleapis.com/chart?chs=300x300&cht=qr&choe=UTF-8&chl='+encodeURIComponent(document.location.href);})()
// 根据当前页面生成 QR code 的 bookmarklet
// 用到了 Google Chart API: https://developers.google.com/chart/infographics/docs/qr_codes?csw=1