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 Hide recommended user | |
// @namespace jp.mitukiii.twitter | |
// @description おすすめユーザーを隠すスクリプト | |
// @include http*://twitter.com/* | |
// ==/UserScript== | |
(function() { | |
var css = '\n\ | |
#recommended_users,\n\ | |
.recommended-similar-users {\n\ |
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
javascript: | |
(function() { | |
if (!location.href.match('^https?:\/\/twitter\.com/')) { | |
return; | |
} | |
var 全裸で = function(ポスト) { | |
ツイート = ポスト.getElementsByClassName('entry-content')[0]; |
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
javascript: | |
(function() { | |
var url = "http://chasen.org/~taku/software/TinySegmenter/tiny_segmenter-0.1.js"; | |
var script = document.createElement('script'); | |
script.setAttribute('src', url); | |
script.setAttribute('type', 'text/javascript'); | |
var head = document.querySelector('head'); | |
if (head) { |
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
<?php | |
class DefaultController extends AppController | |
{ | |
const TUMBLR_AUTHENTICATE_URL = 'http://www.tumblr.com/api/authenticate'; | |
const TUMBLR_DASHBOARD_URL = 'http://www.tumblr.com/api/dashboard'; | |
const TUMBLR_REBLOG_URL = 'http://www.tumblr.com/api/reblog'; | |
const TUMBLR_LIKE_URL = 'http://www.tumblr.com/api/like'; | |
const TUMBLR_DEFAULT_NUM = 10; |
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
# -*- coding: utf-8 -*- | |
if ARGV.empty? | |
puts "Usage ruby remtter.rb [screen_name] ..." | |
end | |
require 'rubygems' | |
require 'rubytter' | |
require 'yaml' |
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
<?php | |
$url = "http://(id):(password)@stream.twitter.com/1/statuses/sample.json"; | |
$stream = fopen($url, 'r'); | |
while ($json = fgets($stream)) { | |
$status = json_decode($json); | |
if (preg_match('/[ぁ-ヶ]|[亜-黑]/', $status->text)) { | |
echo '@'.$status->user->screen_name.PHP_EOL; | |
echo $status->text.PHP_EOL; | |
echo PHP_EOL; |
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
/* | |
外部サイトへのリンクに「rel="external nofollow" target="_blank"」を付ける | |
※prototype.jsが必要 | |
*/ | |
var addRelToLink = function(target) { | |
var host = new RegExp(location.host); | |
var js = /^javascript\:/; | |
Selector.findChildElements(target, ['a']).each(function(link) { | |
if (!host.test(link) && !js.test(link)) { |
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
$('a[class*="username"]').map(function(index, username) { | |
username.href = username.href; | |
}); | |
var createTweetHTML = function(url, img, name, text) { | |
return '<div class="twitter_timeline clearfix"><a href="' + url + '" rel="external nofollow"><img class="left" src="' + img + '" alt="" /></a><p class="left">' + name + ': ' + text + '</p></div>'; | |
}; | |
var tweets = $('.wrapper').map(function(index, content) { | |
var url = content.querySelector('.entry-date').href; | |
var img = content.querySelector('.profile-pic img').src.replace(/bigger/, 'normal'); | |
var name = content.querySelector('.screen-name').textContent; |
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
import java.io.BufferedInputStream; | |
import java.io.BufferedOutputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.FileNotFoundException; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import android.graphics.Bitmap; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>beforeRunningCommand</key> | |
<string>nop</string> | |
<key>bundleUUID</key> | |
<string>AAB4FD74-73F9-11D9-B89A-000D93589AF6</string> | |
<key>command</key> | |
<string>#!/bin/sh |