Moved to https://github.com/ucnv/diff-for-gist.github. This script is also available at .
This file contains 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 imitationLightbox | |
// @description Simple image viewer. | |
// @namespace http://d.hatena.ne.jp/Griever/ | |
// @author Griever | |
// @gist https://gist.github.com/103061 | |
// @license MIT License | |
// @compatibility Firefox 4, Chrome, Opera 11.50 | |
// @include http://* | |
// @include https://* |
This file contains 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 add edit link on tumblr | |
// @namespace http://d.hatena.ne.jp/taizooo/ | |
// @include http://*.tumblr.com/* | |
// @exclude http://www.tumblr.com/* | |
// ==/UserScript== | |
(function(){ | |
function f(doc){ | |
$X('.//a[@class="permalink"]', doc).forEach(function(a){ |
This file contains 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 gist diff | |
// @namespace http://github.com/satyr | |
// @description Shows diffs on Gist with google-diff-match-patch. | |
// @include https://gist.github.com/* | |
// @require https://raw.github.com/gist/105908 | |
// @require https://google-diff-match-patch.googlecode.com/svn/trunk/javascript/diff_match_patch.js | |
// @fork_of http://gist.github.com/105913 | |
// @check_also http://gist.github.com/107780 | |
// ==/UserScript== |
This file contains 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 gist logs | |
// @namespace http://d.hatena.ne.jp/murky-satyr | |
// @description Shows commit logs on Gist. | |
// @include https://gist.github.com/* | |
// @license WTFPL | |
// ==/UserScript== | |
Array.forEach(document.querySelectorAll('#revisions .id'), function(a){ | |
GM_xmlhttpRequest({ | |
method: 'get', url: 'https://raw.github.com/gist'+ a.pathname +'/meta', |
This file contains 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 Diff for gist.github for Opera & Chrome | |
// @namespace http://ss-o.net/ | |
// @include http://gist.github.com/* | |
// @include https://gist.github.com/* | |
// ==/UserScript== | |
(function(){ | |
var f = function($) { | |
var rev = $('#revisions li'); |
This file contains 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
models.register( { | |
name: 'HatenaDiary', | |
ICON: 'http://d.hatena.ne.jp/favicon.ico', | |
POST_URL : 'http://d.hatena.ne.jp', | |
check : function(ps){ | |
return (/(regular|photo|quote|link)/).test(ps.type) && !ps.file; | |
}, | |
converters: { |
This file contains 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
// Chat upload | |
// format sample | |
// http://utatane.tumblr.com/post/118386131/private-chat-format-test | |
(function(){ | |
Tombloo.Service.extractors.register([ | |
{ // Chat extractor | |
name : 'Chat', | |
ICON : models.Twitter.ICON, | |
TARGET_BACKGROUND : '#888', |
This file contains 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 isCircular(obj) { | |
function isCircularWithAncestors(obj, ancestors) { | |
var k; | |
for (k in obj) | |
if (ancestors.indexOf(obj) >= 0 || | |
obj[k] instanceof Object && isCircularWithAncestors(obj[k], ancestors.concat([obj]))) | |
return true; | |
return false; | |
} | |
return obj instanceof Object && isCircularWithAncestors(obj, []); |
This file contains 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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> | |
<link rel="icon" href="{Favicon}"/> | |
<link rel="alternate" type="application/rss+xml" title="RSS" href="{RSS}"/> | |
<title>{Title}{block:PostSummary} - {PostSummary}{/block:PostSummary}</title> | |
<style type="text/css"> | |
* { | |
font-size:100%; |