Discover gists
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
if(window.safari) { | |
// YOUTUBE HACKS for ClickToPlugin | |
var script = "var s = document.createElement('script'); s.textContent = 'if(!/[?&]html5=1/.test(location.search)){"; | |
// Disable SPF | |
script += "ytspf={};Object.defineProperty(ytspf,\"enabled\",{\"value\":false});"; | |
// Disable HTML5 | |
script += "HTMLMediaElement.prototype.canPlayType=function(){return\"\";};HTMLMediaElement.prototype.nativePlay=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){if(this.className===\"CTPmediaElement\")this.nativePlay();else{this.removeAttribute(\"src\");this.load();}};"; | |
// Disable Flash version checking... | |
// ... on /watch pages | |
script += "ytplayer={};Object.defineProperty(ytplayer,\"config\",{\"get\":function(){return ytplayer.$;},\"set\":function($){$.min_version=\"0.0.0\";$.url_v9as2=$.url;ytplayer.$=$;}});"; |
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== | |
// @id Tumblr Dashboard High-Res Photos with Keyboard Shortcuts | |
// @name Tumblr Dashboard High-Res Photos with Keyboard Shortcuts | |
// @version 0.0.1.8 | |
// @update 2013-06-10 | |
// @namespace http://saitamanodoruji.tumblr.com/ | |
// @include http://www.tumblr.com/dashboard* | |
// @include http://www.tumblr.com/show/* | |
// @include http://www.tumblr.com/likes/* | |
// @include http://www.tumblr.com/liked/by/* |
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
Tombloo.Service.extractors.register([ | |
{ | |
name : 'Quote - Twitter Stream Item', | |
ICON : models.Twitter.ICON, | |
getItem: function(target){ | |
return $x('ancestor-or-self::li[starts-with(@id, "stream-item-tweet-")]', target); | |
}, | |
check : function(ctx){ | |
return this.getItem(ctx.target); | |
}, |
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 Tumblr Bookmarker | |
// @description Bookmark posts on your dash to return to later | |
// @namespace http://userscripts.org/users/113977 | |
// @include http://www.tumblr.com/blog/* | |
// @include http://www.tumblr.com/drafts* | |
// @include http://www.tumblr.com/queue* | |
// @include http://www.tumblr.com/likes* | |
// @include http://www.tumblr.com/messages* | |
// @include http://www.tumblr.com/dashboard* |
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
Tombloo.Service.extractors.register([ | |
{ | |
name : 'Photo - MediaWiki Thumbnail', | |
ICON : 'http://www.mediawiki.org/favicon.ico', | |
check : function(ctx){ | |
return ctx.onLink && | |
hasElementClass(ctx.document.body, 'mediawiki') && | |
/wiki\/.+:/.test(ctx.link.href) && | |
(/\.(svg|png|gif|jpe?g)$/i).test(ctx.link.href); | |
}, |
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
[Scriptish] http://www.tumblr.com/Endless Summer on dsbd with Logger: | |
N = 303 | |
dsbdDateStringType,dsbdDate,dsbdUnixtime,mesDate,mesUnixtime,dsbdPostNo,drawnNo | |
4,2010-11-25T07:33:00+09:00,1290637980000,2013-05-30T15:27:30+09:00,1369895250191,1673477110,1673510542 | |
3,2013-05-02T07:28:00+09:00,1367447280000,2013-05-30T15:27:32+09:00,1369895252131,49390225739,49390234848 | |
4,2012-04-27T11:54:00+09:00,1335495240000,2013-05-30T15:27:33+09:00,1369895253955,21892860601,21892897906 | |
4,2010-01-21T05:33:00+09:00,1264019580000,2013-05-30T15:27:39+09:00,1369895259761,344730755,344731326 | |
4,2010-11-30T08:57:00+09:00,1291075020000,2013-05-30T15:27:41+09:00,1369895261997,1731400102,1828686412 | |
4,2007-08-22T23:36:00+09:00,1187793360000,2013-05-30T15:27:46+09:00,1369895266926,9353871,9355303 | |
4,2007-08-17T11:19:00+09:00,1187317140000,2013-05-30T15:27:52+09:00,1369895272051,8869587,8870201 |
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
'month' | 'largest_post_id' | 'post_url' | |
---|---|---|---|
'2006-06' | 1 | 'http://www.davidslog.com/1' | |
'2006-07' | 1 | 'http://www.davidslog.com/1' | |
'2006-08' | 1 | 'http://www.davidslog.com/1' | |
'2006-09' | 1 | 'http://www.davidslog.com/1' | |
'2006-10' | 114 | 'http://www.davidslog.com/114' | |
'2006-11' | 441 | 'http://www.davidslog.com/441' | |
'2006-12' | 765 | 'http://www.davidslog.com/765' | |
'2007-01' | 1067 | 'http://www.davidslog.com/1067' | |
'2007-02' | 11884 | 'http://www.davidslog.com/9207' |
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
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |
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
2010-10-01 | 1216211975 | http://saitamanodoruji.tumblr.com/post/1216211975 | |
---|---|---|---|
2010-10-02 | 1224294775 | http://saitamanodoruji.tumblr.com/post/1224294775 | |
2010-10-03 | 1228433880 | http://saitamanodoruji.tumblr.com/post/1228433880 | |
2010-10-04 | 1235970523 | http://saitamanodoruji.tumblr.com/post/1235970523 | |
2010-10-05 | 1243044228 | http://saitamanodoruji.tumblr.com/post/1243044228 | |
2010-10-06 | 1249633340 | http://saitamanodoruji.tumblr.com/post/1249633340 | |
2010-10-07 | 1256966557 | http://saitamanodoruji.tumblr.com/post/1256966557 | |
2010-10-08 | 1263520318 | http://saitamanodoruji.tumblr.com/post/1263520318 | |
2010-10-09 | 1272999794 | http://saitamanodoruji.tumblr.com/post/1272999794 | |
2010-10-10 | 1279326446 | http://saitamanodoruji.tumblr.com/post/1279326446 |
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
var removeDuplicate2 = function(a) { | |
var b = [], i = 1, j, k | |
while (i < a.length) { | |
k = a.length | |
for (j = 0; j < i; j++) { | |
if (a[i] === a[j]) { | |
b.push(a[j]) | |
a.splice(i,1) | |
break | |
} |
NewerOlder