Skip to content

Instantly share code, notes, and snippets.

💤

WADA Takashi watagashi

💤
Block or report user

Report or block watagashi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mobileweb.js
// apppend this file after ssl.js
twitterURL = 'http://mobile.twitter.com/';
View gearsgeo.js
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 Oct 4, 2010
Share with Quoting Bookmarklet | dev.twitter.com http://t.co/khZ0IUy
View share_bookmarklet.txt
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 Oct 9, 2010 — forked from NeoCat/tweet_URL_with_twicli.js
Open twicli and input tweet with current URL, title and selected text
View tweet_URL_with_twicli.js
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 Oct 17, 2010
nonFollowerRetweeted.css for twicli
View nonFollowerRetweeted.css
.retweeted .non-follower {
color: #555588;
}
View insert_hashtag.js
(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) {
View deny_iframe.js
var denyIframe = [
/^https?:\/\/(www\.)?twitter\.com\b/,
/^http:\/\/(www\.)?ustream\.tv\b/, /^http:\/\/ustre\.am\b/,
/^http:\/\/blogs\.msdn\.com\/b\/ie\b/
];
View followers.js
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 = [];
View makevim.cmd
@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
View fstheight.js
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;
}
You can’t perform that action at this time.