Skip to content

Instantly share code, notes, and snippets.

if (KeySnail.windowType === "navigator:browser")
{
const whiteList = [
// ["URL (RegExp)", ["k", "e", "y"]]
["http://twitter\.com/", ["f"]],
["http://wikipedia\.com/", ["j", "o"]]
];
window.addEventListener(
"DOMContentLoaded",
(add-to-list 'load-path "~/src/emacs-starter-kit/src/mmm-mode")
(require 'mmm-mode)
(setq mmm-global-mode 'maybe)
(mmm-add-classes
'((embedded-org-css
:submode css
:face mmm-declaration-submode-face
:delimiter-mode nil
:front "#\\+begin_src css"
// ========================== KeySnail Init File =========================== //
// この領域は, GUI により設定ファイルを生成した際にも引き継がれます
// 特殊キー, キーバインド定義, フック, ブラックリスト以外のコードは, この中に書くようにして下さい
// ========================================================================= //
//{{%PRESERVE%
userscript.addLoadPath("~/programming/js");
// Prompt settings {{ ======================================================= //
// http://pc12.2ch.net/test/read.cgi/software/1271678210/719
// ツール -> KeySnail -> 設定ファイルを編集 から設定ファイルを開き, その末尾へ次のコードを貼り付け.
key.setViewKey('<f8>', function (ev, arg) {
var toolBar = document.getElementById("PersonalToolbar");
toolBar.collapsed = !toolBar.collapsed;
}, 'ブックマークツールバーをトグル');
key.setViewKey('C-F', function (ev, arg) {
command.iSearchForwardKs(ev);
@m2ym
m2ym / xmonad.hs
Created January 7, 2011 03:33
Tomohiro Matsuyama's XMonad Configuration
import qualified Data.Map as M
import XMonad
import qualified XMonad.StackSet as W
import XMonad.Actions.WindowGo
import XMonad.Actions.CycleWS
import XMonad.Hooks.ManageDocks
import XMonad.Hooks.EwmhDesktops
import XMonad.Layout
@mooz
mooz / 1.png
Created February 4, 2011 13:22
1.png
(progn
;; http://d.hatena.ne.jp/kiwanami/20110224/1298526678
(defvar ac-yas-expand-autostart-backup nil "保存用")
(defun ac-yas-expand-start ()
"yasnippet展開開始時にはACを止める"
(setq ac-yas-expand-autostart-backup ac-auto-start)
(setq ac-auto-start nil))
(defun ac-yas-expand-end ()
@958
958 / history.ks.js
Last active September 25, 2015 08:57
[keysnail]history plugin
// Info
let PLUGIN_INFO =
<KeySnailPlugin>
<name>History</name>
<description>History from KeySnail</description>
<description lang="ja">履歴を検索</description>
<iconURL>https://sites.google.com/site/958site/Home/files/history.ks.png</iconURL>
<updateURL>https://gist.github.com/958/895953/raw/history.ks.js</updateURL>
<author>958</author>
@958
958 / .keysnail.js
Created April 28, 2011 05:12
[keysnail] vimperator の C-^ みたいな
if (typeof gBrowser !== 'undefined' && gBrowser.tabContainer) {
let prev = gBrowser.tabContainer.selectedIndex;
let cur = prev;
gBrowser.tabContainer.addEventListener("TabSelect", function(){
prev = currentSelectedTabIndex;
cur = gBrowser.tabContainer.selectedIndex;
}, false);
ext.add("toggle-selected-tab", function () gBrowser.tabContainer.selectedIndex = prev, '選択タブをトグルする');
}
@958
958 / disable_github_keyboard_shortcuts.user.js
Created April 28, 2011 07:43
github のキーボードショートカットを殺す Greasemonkey Script
// ==UserScript==
// @name Disable github keyboard shortcuts
// @namespace http://sites.google.com/site/958site/
// @description github のキーボードショートカットを殺す
// @include https://github.com/*
// @include https://gist.github.com/*
// ==/UserScript==
unsafeWindow.$(document).unbind('keydown');