Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

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
// ==UserScript==
// @name V2EXtend
// @namespace http://www.v2ex.com
// @description Extend Your Way To Explore
// @include http://v2ex.appspot.com/*
// @include http://v2ex.com/*
// @include http://www.v2ex.com/*
// @author disinfeqt and Chris_Ys
// ==/UserScript==
javascript:void(function(){var%20i,a,s;a=document.getElementsByTagName('link');for(i=0;i<a.length;i++){s=a[i];if(s.rel.toLowerCase().indexOf('stylesheet')>=0&&s.href)%20{var%20h=s.href.replace(/(&|%5C?)forceReload=\d+/,'');s.href=h+(h.indexOf('?')>=0?'&':'?')+'forceReload='+(new%20Date().valueOf())}}})();
@disinfeqt
disinfeqt / gist:504382
Created August 2, 2010 09:17
CSS Font Reset
body { font:13px/1.22 "Helvetica Neue", Helvetica, "Hiragino Sans GB","Hiragino Kaku Gothic Pro","STXihei",Hei,SimSun,"WenQuanYi Micro Hei","\5b8b\4f53",sans-serif; *font-size:small; *font:x-small; }
#by.disinfeqt{}
<!--[if IE]> <script> (function() { var html5 = ("abbr,article,aside,audio,canvas,datalist,details," + "figure,footer,header,hgroup,mark,menu,meter,nav,output," + "progress,section,time,video").split(','); for (var i = 0; i < html5.length; i++) { document.createElement(html5[i]); } })(); </script> <![endif]-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script>!window.jQuery && document.write('<script src="js/jquery-1.4.2.min.js"><\/script>')</script>
<!-- Individual YUI CSS files -->
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/reset-fonts-grids/reset-fonts-grids.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/base/base-min.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/autocomplete/assets/skins/sam/autocomplete.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/container/assets/skins/sam/container.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/menu/assets/skins/sam/menu.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/button/assets/skins/sam/button.css">
<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/yui/2.8.2r1/build/calendar/assets/skins/sam/calendar.css">
<link rel="styles
@disinfeqt
disinfeqt / LESS.css
Created March 7, 2011 15:44
CSS3 Buttons Made Easy
@start: #9bce4c; @end: #6f9f27;
.button-gradient (@start, @end);
&:hover {
.button-gradient (darken(@start, 2%), darken(@end, 2%));
}
&:active {
.button-gradient (darken(@end, 2%), darken(@start, 2%));
}