Skip to content

Instantly share code, notes, and snippets.

View watagashi's full-sized avatar
🏠
Working from home, except for the weekend.

WADA Takashi watagashi

🏠
Working from home, except for the weekend.
View GitHub Profile
// apppend this file after ssl.js
twitterURL = 'http://mobile.twitter.com/';
registerPlugin({
init: function() {
if(!navigator.geolocation) {
try {
navigator.geolocation = google.gears.factory.create("beta.geolocation");
} catch(e) {
// Not found Gears.
}
}
}
@watagashi
watagashi / share_bookmarklet.txt
Created October 4, 2010 12:19
Share with Quoting Bookmarklet | dev.twitter.com http://t.co/khZ0IUy
javascript:(function(){window.twttr=window.twttr||{};var%20D=550,A=450,C=screen.height,B=screen.width,H=Math.round((B/2)-(D/2)),G=0,F=document,E;if(C>A){G=Math.round((C/2)-(A/2))}window.twttr.shareWin=window.open('http://twitter.com/share','','left='+H+',top='+G+',width='+D+',height='+A+',personalbar=0,toolbar=0,scrollbars=1,resizable=1');E=F.createElement('script');E.src='https://raw.github.com/gist/609613/sharetweet.js';F.getElementsByTagName('head')[0].appendChild(E)}());
@watagashi
watagashi / tweet_URL_with_twicli.js
Created October 9, 2010 04:02 — forked from NeoCat/tweet_URL_with_twicli.js
Open twicli and input tweet with current URL, title and selected text
javascript:void(function(){var%20d=document,w=window,t=(d.selection)?(d.selection.createRange().text):(d.getSelection)?d.getSelection():(w.getSelection)?w.getSelection():'';w.open('http://twicli.neocat.jp/twicli.html?status='+encodeURIComponent((t?'"'+t+'"':'%20>')+'%20'+d.title+'%20'+location.href),'twicli')}())
@watagashi
watagashi / nonFollowerRetweeted.css
Created October 17, 2010 14:48
nonFollowerRetweeted.css for twicli
.retweeted .non-follower {
color: #555588;
}
(function(){
var footerSetting = footer;
registerPlugin({
switchTo: function(m) {
var sel = document.getElementsByClassName("sel");
if(sel.length < 1) return;
if(sel[0].id.indexOf("search-#") != 0) {
var denyIframe = [
/^https?:\/\/(www\.)?twitter\.com\b/,
/^http:\/\/(www\.)?ustream\.tv\b/, /^http:\/\/ustre\.am\b/,
/^http:\/\/blogs\.msdn\.com\/b\/ie\b/
];
var followers_limit = 200;
var followers_ids_list = (readCookie('followers_ids') || '');
var followers_idx = 0, followers_ids_slice;
while(true) {
followers_ids_slice = readCookie('followers_ids' + (followers_idx++)||'')
if(!followers_ids_slice) break;
followers_ids_list = followers_ids_list.concat(followers_ids_slice);
}
followers_ids_list = followers_ids_list != '' ? followers_ids_list.split(',') : [];
var followers_ids = [];
@echo off
setlocal
if not defined VIM set VIM=%1
pushd %VIM%\src || goto end
rem mingw32-make -f Make_ming.mak clean
rem pause
mingw32-make -f Make_ming.mak OLE=yes
mingw32-make -f Make_ming.mak GUI=no
function setFstHeight(h, force) {
if (!h)
h = $("fst").value.length ? Math.max($("fst").scrollHeight+2,min_fst_height) : min_fst_height;
if (no_resize_fst && !force) return;
var exh = (navigator.userAgent.indexOf("MSIE 8") >= 0 ? 1 : 0), opt = $("option").clientHeight;
$("fst").style.height = h;
var twh = (window.innerHeight || document.documentElement.clientHeight)-$("control").offsetHeight-2;
$("tw").style.height = $("re").style.height = $("tw2").style.height =
twh > 0 ? twh : 0;
}