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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Name</key><string>Tube8</string> | |
<key>FirstURL</key><string>http://www.tube8.com</string> | |
<key>TextToCatchInURL</key><string>/</string> | |
<key>VideoSearch</key><string>EndBeginEnd</string> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Name</key><string>Tube8</string> | |
<key>FirstURL</key><string>http://www.tube8.com</string> | |
<key>TextToCatchInURL</key><string>/</string> | |
<key>VideoSearch</key><string>EndBeginEnd</string> |
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 noref | |
// @description Aタグにrel="noreferrer"を付ける | |
// @match http://*/* | |
// @match https://*/* | |
// ==/UserScript== | |
var fn = function(node) { | |
if (node.nodeName === 'A') { | |
if (!/(?:^|\s)noreferrer(?:$|\s)/.test(node.rel)) { |
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
<?php | |
define('NICONICO_MAILADDRESS', '<アカウントアドレス>'); | |
define('NICONICO_PASSWORD' , '<アカウントパスワード>'); | |
$id = @$argv[1]; | |
if(!$id) exit('Usage (sm|lv)[\d]+'.PHP_EOL); | |
if(strpos($id, 'sm') === 0) getVideoComment($id); | |
if(strpos($id, 'lv') === 0) getLiveComment($id); | |
if(strpos($id, 'co') === 0) getLiveComment($id); |
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 ZeroFix | |
// @namespace applest.net | |
// @version 0.9 | |
// @description ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 タイトルの縮小、タグの複数段表示、市場エリアを投稿者情報に、コメント入力エリアを下に、フェードを無効化などの機能があります。 | |
// @include http://www.nicovideo.jp/watch/* | |
// @license MIT License(http://en.wikipedia.org/wiki/MIT_License) | |
// ==/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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
# Python3 & python-twitter v3.2 | |
import twitter # python-twitter | |
import csv | |
import io | |
import codecs | |
from requests_oauthlib import OAuth1Session | |
REQUEST_TOKEN_URL = 'https://api.twitter.com/oauth/request_token' | |
ACCESS_TOKEN_URL = 'https://api.twitter.com/oauth/access_token' | |
AUTHORIZATION_URL = 'https://api.twitter.com/oauth/authorize' |