Skip to content

Instantly share code, notes, and snippets.

@nobodyplace
nobodyplace / nico_blogparts.user.js
Created May 2, 2012 03:16
ニコニコ動画のブログ貼り付け用コードを動画画面に表示するGreasemonkey(Zero対応)
// ==UserScript==
// @name Nico Blogparts
// @version 0.2.1
// @namespace https://gist.github.com/2573333
// @description ニコニコ動画のブログ貼り付け用コードを動画画面に表示するGreasemonkey
// @include http://www.nicovideo.jp/watch/*
// @updated 2011/05/02 16:30:00
// ==/UserScript==
// 0.0.1 - 2009/11/01 リリース
// 0.0.2 - 2009/11/08 チャンネル動画のvideoId(ex. http://www.nicovideo.jp/watch/1255083605)に対応
@nobodyplace
nobodyplace / zerowatch_ui_customize.user.js
Created May 4, 2012 04:32
ZeroWatchのUIをカスタマイズするGreasemonkey。公式で対応した部分は順次機能削除していく予定です。
// ==UserScript==
// @name ZeroWatch UI Customize by is
// @version 0.3.0
// @namespace nplll.com
// @description ZeroWatchのUIをカスタマイズするGreasemonkey。公式で対応した部分は順次機能削除していく予定です。
// @include http://www.nicovideo.jp/watch/*
// @see https://gist.github.com/2575225
// @license MIT License(http://en.wikipedia.org/wiki/MIT_License)
// ==/UserScript==
// Version History:
@nobodyplace
nobodyplace / gist:2909458
Created June 11, 2012 10:21
Twitter APIからアイコンのURLを取得するサンプル
<?php
require_once 'HTTP/Client.php';
$client = new HTTP_Client();
$client->get('https://api.twitter.com/1/users/profile_image?screen_name=nobodyplace');
$response = $client->currentResponse();
echo $response['url'];
?>
@nobodyplace
nobodyplace / gist:3903397
Created October 17, 2012 02:31
[ExtJS4] Grid上で右クリックした行を選択する
grid.on({
itemcontextmenu : {
scope : this,
fn : function(view, record, node, index, event, options) {
// 右クリックしたらその行を選択
me.grid.getView().select(record.getId() - 1);
}
}
});
@nobodyplace
nobodyplace / nicoplayer_ui_customize.user.js
Last active November 5, 2016 01:05
ニコニコ動画プレイヤーのUIをカスタマイズするGreasemonkey
// ==UserScript==
// @name NicoPlayer UI Customize
// @namespace http://1ni.co/greasemonkeys
// @description ニコニコ動画プレイヤーのUIをカスタマイズするGreasemonkey
// @version 3.0.2
// @downloadURL https://gist.github.com/raw/3905580/nicoplayer_ui_customize.user.js
// @updateURL https://gist.github.com/raw/3905580/nicoplayer_ui_customize.user.js
// @include http://www.nicovideo.jp/watch/*
// @grant GM_getValue
// @grant GM_setValue
@nobodyplace
nobodyplace / freshreader_wide.user.js
Created October 18, 2012 03:20
Freshreaderの幅を調整するGreasemonkey
// ==UserScript==
// @name Freshreader Wide
// @namespace http://nplll.com/greasemonkeys
// @description Freshreaderの幅を調整する
// @version 1.0.0
// @downloadURL https://gist.github.com/raw/3909684/freshreader_wide.user.js
// @updateURL https://gist.github.com/raw/3909684/freshreader_wide.user.js
// @include http://*/feedlist.php*
// @grant none
// @author Ippei "is" Suzuki
@nobodyplace
nobodyplace / seiga_rss_bookmarklet
Last active October 12, 2015 06:28
ニコニコ静画のRSSを表示するためのブックマークレット
javascript:void(function(u,t){if(u.match(/seiga.nicovideo.jp/))window.open('http://1ni.co/seiga/'+t+'/rss')})(location.href,document.getElementById('ko_watchlist_header').getAttribute('data-id'));
@nobodyplace
nobodyplace / gist:3984653
Created October 31, 2012 03:37
ニコニコ動画のタグ検索のRSSを作成するブックマークレット
javascript:void(function(t){window.open('http://1ni.co/tag/'+t[1]+'/rss')})(location.href.match(/http:\/\/www.nicovideo.jp\/tag\/([^/?]+)/));
@nobodyplace
nobodyplace / gist:8949754
Last active August 29, 2015 13:56
[Tumblr] OAuthで認証
//コールバックURL
$callback = 'http://nplll.com/tumblr_return';
//HTTP_OAuth
$consumer = new HTTP_OAuth_Consumer(CONSUMER_KEY, CONSUMER_SECRET_KEY);
$http_request = new HTTP_Request2();
$http_request->setConfig('ssl_verify_peer', false);
$consumer_request = new HTTP_OAuth_Consumer_Request();
$consumer_request->accept($http_request);
$consumer->accept($consumer_request);
@nobodyplace
nobodyplace / gist:8949904
Created February 12, 2014 04:05
[Tumblr] OAuthで認証後、ユーザー情報取得
$response = $consumer->sendRequest('http://api.tumblr.com/v2/user/info', array(), 'GET');
$user = json_decode($response->getBody())->response->user;