Skip to content

Instantly share code, notes, and snippets.

View 10sr's full-sized avatar
👀
I may be slow to respond.

10sr 10sr

👀
I may be slow to respond.
View GitHub Profile
@10sr
10sr / openallinnewtab.user.js
Created January 13, 2010 00:48
すべてのリンクを新しいタブで開くぐりもん
// ==UserScript==
// @name open all in new tab
// @namespace 10sr.posterous.com
// @discription add target="_blank" to all anchors
// @include http://*
// @include https://*
// @exclude http://delicious.com/*
// @exclude https://secure.delicious.com/*
// @exclude http://twitter.com/*
// @exclude https://twitter.com*
@10sr
10sr / css.user_js
Created January 14, 2010 06:02
cssテンプレforぐりもん
// ==UserScript==
// @name
// @author
// @namespace
// @description css template for greasemonkey
// ==/UserScript==
(function(){
GM_addStyle(<><![CDATA[
/*write css here*/
]]></>);
@10sr
10sr / opensimplewindow.url
Created January 14, 2010 12:43
open in new plain window
javascript:void(window.open('http://hogehoge.com','','locationbar=no,toolbar=no,personalbar=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=655,height=560'))
@10sr
10sr / identicafromks.js
Created January 18, 2010 07:17
identi.ca from ks俺用
function (aEvent) {
prompt.read("identi.ca:", function (aStatus) {
var password;
var username = "10sr";
var passwordManager = (Cc["@mozilla.org/login-manager;1"].getService(Ci.nsILoginManager));
var logins = passwordManager.findLogins({},
"http://identi.ca", "", null);
for (var i = 0; i < logins.length; i++) {
if (logins[i].username == username) {
password = logins[i].password;
@10sr
10sr / rightangletumblr.user.js
Created January 19, 2010 11:24
dashboardが軽くなるらしい
// ==UserScript==
// @name right angle tumblr
// @author
// @namespace 10sr.posterous.com
// @description
// @include http://www.tumblr.com/dashboard*
// ==/UserScript==
// from http://dara-j.tumblr.com/post/51012953/kakukaku-dsbd
(function(){
GM_addStyle(<><![CDATA[
@10sr
10sr / tinytwittercom.user.js
Created January 22, 2010 11:39
twitter.com用css
// ==UserScript==
// @name tiny twitter.com
// @namespace 10sr.posterous.com
// @description dead simple twitter.com stylesheet
// @include http://twitter.com/
// @include https://twitter.com/
// ==/UserScript==
//almost all from http://nukumori.org/hiki/?TwitterSidebarCSS
// + bigger font-size, simpler input area, a little bigger thumbnails
@10sr
10sr / togglesidetoolbar.js
Created January 24, 2010 12:55
keysnail-aiosツールバーをトグル
key.setViewKey('b', function (ev, arg) {
aios_toggleElement("aios-toolbar");
aios_toggleToolbar("aios-toolbar");
event.stopPropagation();
}, 'toggle side toolbar');
@10sr
10sr / kstweet.js
Created January 25, 2010 08:30
ksついったーエクステ版
ext.add("twitter-s-tweet", function () {
function tweet(aInitialInput) {
var statusbar = document.getElementById("statusbar-display");
var limit = 140;
prompt.reader({
message: "tweet:",
initialcount: 0,
initialinput: aInitialInput,
group: "twitter_tweet",
@10sr
10sr / ahklauncher.ahk
Created February 7, 2010 13:30
ahkランチャ
/*
[launch]
menuname1=command1
menuname2=command2
なファイルを作って、引数に指定。
=のない行は[launch]以外全部セパレタ。
日本語不可っぽい。
%input%と%selectfolder%が使用可能。
あと、%ahklaunch%使える。
例:mainmenu=%ahklaunch% "ahklauncher.ini"
@10sr
10sr / everythingmenu.ahk
Created February 8, 2010 05:35
everything search engine用ahkスクリプト
/*
iniにこんな感じで入れる
open_file_command=$exec("C:\My Dropbox\apps\AutoHotkey\AutoHotkey.exe" "C:\My Dropbox\apps\Everything\everythingmenu.ahk" "%1")
open_folder_command=$exec("C:\My Dropbox\apps\AutoHotkey\AutoHotkey.exe" "C:\My Dropbox\apps\Everything\everythingmenu.ahk" "%1")
*/
#NoTrayIcon
CoordMode,menu,relative
SplitPath, A_LineFile, emenu_scriptname, emenu_scriptdir,
targetpath = %1%
FileGetAttrib, fileatt , %targetpath%