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 I've seen it in tumblr. | |
| // @match http://www.tumblr.com/dashboard* | |
| // @version 1.0.0 | |
| // @description 一度見たポストを表示しないようにさせます | |
| // | |
| // @author poochin | |
| // @license MIT | |
| // @updated 2012-06-14 | |
| // ==/UserScript== |
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
| /** | |
| * Tumblr で reblog-key を用いて重複ポストのみ拾うスクリプト | |
| */ | |
| (function(){ | |
| var frag = document.createDocumentFragment(); | |
| var reblog_keys = {}; | |
| $$('#posts>.post:not(.new_post)').map(function(node) { | |
| var reblog_key = node.querySelector('.reblog_button').getAttribute('data-reblog-key'); | |
| if (!reblog_keys[reblog_key]) reblog_keys[reblog_key] = []; | |
| reblog_keys[reblog_key].push(node); |
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
| diff -cr 0.11.0_0/command.js 0.11.0_0p/command.js | |
| *** 0.11.0_0/command.js 2012-04-26 10:54:01.323464160 +0900 | |
| --- 0.11.0_0p/command.js 2012-04-26 10:56:23.351463806 +0900 | |
| *************** | |
| *** 358,364 **** | |
| event.stopPropagation(); | |
| return event.preventDefault(); | |
| default: | |
| ! this.execCommand(com); | |
| event.stopPropagation(); |
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 Test Script | |
| // @match http://*/* | |
| // @version 1.0.0 | |
| // @description CoffeeScript で UserScript を吐き出させるテストです | |
| // ==/UserScript== | |
| ` | |
| (-> | |
| console.log "Hello, World!" |
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 Default values | |
| // @match http://*/* | |
| // @version 1.0.0 | |
| // @description フォームの初期値を設定します | |
| // | |
| // @author poochin | |
| // @license MIT | |
| // @updated 2012-01-22 |
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 _submit_like_toggler(post_id) { | |
| var unlike = $('like_button_' + post_id).hasClassName('already_like') ? true : false; | |
| var like_form_action = $('like_form_' + post_id).action; | |
| var root_id = $('like_button_' + post_id).hasAttribute('data-root-post-id') ? $('like_button_' + post_id).getAttribute('data-root-post-id') : false; | |
| if (unlike) { | |
| $('like_button_' + post_id).removeClassName('already_like'); | |
| $('like_form_' + post_id).action = like_form_action.replace('/unlike', '/like'); | |
| decrement_note_count(post_id); | |
| if (root_id) { | |
| $$('.like_root_' + root_id).invoke('removeClassName', 'already_like') |
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
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import locale | |
| import curses | |
| locale.setlocale(locale.LC_ALL, '') | |
| fukkin = ( | |
| [" ○ > %18d...", |
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
| ~/ $ no-command | |
| command not found: no-command | |
| ~/ $ echo $? | |
| 127 | |
| ~/ $ ls --no-option | |
| ls: オプション '--no-option' を認識できません | |
| 詳しくは `ls --help' を実行して下さい。 | |
| ~/ $ echo $? | |
| 2 | |
| ~/ $ |
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
| #!/usr/bin/env python | |
| # -*- coding: UTF-8 -*- | |
| ''' | |
| name: tumbled2pub | |
| desc: Tumblelog の Drafts を公開するスクリプト | |
| license: MIT | |
| version: ('x')? | |
| ''' |
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
| diff -Naru 1.0_0/script.js 1.0_0p/script.js | |
| --- 1.0_0/script.js 2012-01-16 13:42:39.771423716 +0900 | |
| +++ 1.0_0p/script.js 2012-01-16 13:47:48.915422946 +0900 | |
| @@ -12,6 +12,14 @@ | |
| (function(w, content_window, d) { 'use strict'; | |
| +var channels = (function(objs) { | |
| + var names = []; | |
| + for (var i = 1; i < objs.length; ++i) { |