This file contains hidden or 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
/* tumblelog.js */ | |
if (!Tumblr) { | |
var Tumblr = {} | |
} | |
Tumblr.flashVersion = function () { | |
if (navigator.plugins && navigator.plugins.length > 0) { | |
var mimeData = navigator.mimeTypes; | |
if (mimeData && mimeData["application/x-shockwave-flash"] && mimeData["application/x-shockwave-flash"].enabledPlugin && mimeData["application/x-shockwave-flash"].enabledPlugin.description) { | |
return parseInt(mimeData["application/x-shockwave-flash"].enabledPlugin.description.split(" ")[2].split(".")[0], 10) | |
} |
This file contains hidden or 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
var just_clicked_account_menu = false, | |
just_clicked_search_menu = false, | |
just_clicked_user_menu = false, | |
just_clicked_dashboard_switch_blog_menu = false, | |
notes_slide_effect = false, | |
reply_slide_effect = false, | |
key_commands_are_suspended = false, | |
report_tumblelog_bar_timeout = false, | |
video_thumbnail_hover = false, | |
running_image_queue = false, |
This file contains hidden or 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
@-moz-document domain("ssr.minidns.net") { | |
body { | |
overflow: scroll!important; | |
} | |
img { | |
width: 100%!important; | |
height: auto!important; | |
} | |
#ssr_adv { | |
display: none; |
This file contains hidden or 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
@-moz-document domain("suwaowa.blogspot.jp") { | |
/* https://gist.github.com/2344661 */ | |
.entry-content img[src*="flickr"], | |
.entry-content img[src*="ggpht"], | |
.entry-content img[src*="blogspot.com"] { | |
width:100% !important; | |
height:auto !important; | |
} | |
.entry-content iframe { |
This file contains hidden or 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 getElementPosition(elem){ | |
var position=elem.getBoundingClientRect(); | |
return { | |
left:Math.round(window.scrollX+position.left), | |
right:Math.round(window.scrollY+position.right), | |
top:Math.round(window.scrollY+position.top), | |
bottom:Math.round(window.scrollY+position.bottom) | |
} | |
} |
This file contains hidden or 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
// ==UserScript== | |
// @name ReblogMachineEndlessSummerTuneUp.user.js | |
// @namespace http://taizooo.tumblr.com/ | |
// @include http://reblog.machine.mamemomonga.com/dashboard* | |
// ==/UserScript== | |
location.href = 'javascript:(' + function () { | |
(function(w) { | |
ReblogMachine.endless_summer.prototype.choice = function () { | |
var a = [ |
This file contains hidden or 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 getRandom() { | |
var a = [ | |
{ 'year' : '2007' | |
, 'min' : 765 | |
, 'max' : 22716604 | |
, 'url' : 'http://kagurazakaundergroundresistance.tumblr.com/post/22716604' | |
}, | |
{ 'year' : '2008' | |
, 'min' : 22716605 | |
, 'max' : 67666062 |
This file contains hidden or 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
// ==UserScript== | |
// @name ReblogMachineHighResPhotos.user.js | |
// @namespace http://taizooo.tumblr.com/ | |
// @include http://reblog.machine.mamemomonga.com/dashboard* | |
// ==/UserScript== | |
location.href = 'javascript:(' + function () { | |
(function(){ | |
orign_treatment=ReblogMachine.model.post_treatment.prototype; |
This file contains hidden or 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
@-moz-document domain("twitter.com") { | |
/* https://gist.github.com/2107327 */ | |
body { | |
background: #fff !important; | |
/*background-image:none!important;*/ | |
font-size:18px; | |
} | |
body * { | |
font-family: sans-serif!important; | |
} |
This file contains hidden or 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 cssonoff(s) { | |
var ns = document.querySelectorAll("style"); | |
[].forEach.call(ns, function (n) { | |
n.disabled = s; | |
}) | |
var xs = document.querySelectorAll("link"); | |
[].forEach.call(xs, function (x) { | |
if (x.rel.match(/stylesheet/i)) { | |
n.disabled = s; | |
} |