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
@watagashi
watagashi / selected.css
Created January 9, 2011 05:24
twicli's stylesheet for shortcutkey.js
div.tw { font-size: x-small; }
div.tw .utils, div.tw .fav { display:none; }
div.tw div.selected { font-size: medium; }
div.tw div.selected .utils, div.tw div.selected .fav { display:block; }
div.tw div.selected .thumbnail-image { border: solid 2px white; width: auto; max-width: 200px; }
registerPlugin({
newMessageElement: function(elem, tw) {
var rs = tw.retweeted_status || tw;
if (!rs.geo || rs.geo.type != 'Point') return;
var geomap = null; // find "geomap" in elem
for (var i = 0; i < elem.childNodes.length; i++) {
var util = elem.childNodes[i];
if (util.className != "utils") continue;
for (var j = 0; j < util.childNodes.length; j++) {
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;
}
@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
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 = [];
var denyIframe = [
/^https?:\/\/(www\.)?twitter\.com\b/,
/^http:\/\/(www\.)?ustream\.tv\b/, /^http:\/\/ustre\.am\b/,
/^http:\/\/blogs\.msdn\.com\/b\/ie\b/
];
(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) {
@watagashi
watagashi / nonFollowerRetweeted.css
Created October 17, 2010 14:48
nonFollowerRetweeted.css for twicli
.retweeted .non-follower {
color: #555588;
}
@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 / 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)}());