Skip to content

Instantly share code, notes, and snippets.

/* 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)
}
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,
@-moz-document domain("ssr.minidns.net") {
body {
overflow: scroll!important;
}
img {
width: 100%!important;
height: auto!important;
}
#ssr_adv {
display: none;
@-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 {
@taizooo
taizooo / getElementPosition.js
Created April 7, 2012 02:42
getBoundingClientRect()を使って要素の絶対座標を求める via http://d.hatena.ne.jp/javascripter/20080531/1212264942
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)
}
}
// ==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 = [
function getRandom() {
var a = [
{ 'year' : '2007'
, 'min' : 765
, 'max' : 22716604
, 'url' : 'http://kagurazakaundergroundresistance.tumblr.com/post/22716604'
},
{ 'year' : '2008'
, 'min' : 22716605
, 'max' : 67666062
// ==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;
@-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;
}
@taizooo
taizooo / cssonoff.js
Created March 13, 2012 15:20
対youpy.css cssonoff
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;
}