Skip to content

Instantly share code, notes, and snippets.

Avatar

disinfeqt disinfeqt

View GitHub Profile
View stylish.css
[lang]:lang(zh-CN) {
margin-top: 0 !important;
}
.adv-wrapper {
display: none;
}
View linkToQrcode
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
View twitter-followers.css
.js-mini-profile-stat {
font-size: 0;
}
.js-mini-profile-stat::after {
content: attr(title);
font-size: 20px;
}
View rdio_add_to_playlist.js
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.
View zoom.js
$(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;
View Kickoff2.js
(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) {
View Bust.js
<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 = '';
};
View Twitter.css
.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);
@disinfeqt
disinfeqt / gist:2661094
Created May 11, 2012
No input[type=password]
View gist:2661094
!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 () {};
View gist:2397092
@-webkit-keyframes pulse {
50% {
color: rgba(0,0,0,.5);
}
100% {
color: rgba(255,255,255,.8);
}
}
You can’t perform that action at this time.