This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! -nargs=+ lazy autocmd VimperatorEnter .* <args> | |
lazy fmaps -u='mail\.google\.com/mail' c / j k n p o u e x s r a # [ ] ? gi gs gt gd ga gc | |
lazy fmaps -u='mail\.google\.com/mail/.*/[0-9a-f]+$' c / j,n k,p n,j p,k o u e x s r a # [ ] ? gi gs gt gd ga gc | |
lazy fmaps -u='www\.google\.co\.jp/reader' -events=vkeypress j k n p m s v A r S N P X O gh ga gs gt gu u / ? J K | |
lazy fmaps -u='(fastladder|livedoor)\.com/reader' j k s a p o v c i,p <Space> <S-Space> z b < > q w e,g | |
lazy fmaps -u='https?://www\.rememberthemilk\.com/home/' j k m i c t ? d F,f G,g S,s L,l Y,y H,h M,m <Del> <C-S-Left> <C-S-Right> | |
lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/list' o j k | |
lazy fmaps -u='http://code.google.com/p/vimperator-labs/issues/detail' u | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mappings.addUserMap( | |
[modes.COMMAND_LINE], | |
['<C-i>'], | |
'Edit commandline by external editor', | |
function () { | |
io.withTempFiles( | |
function (file) { | |
file.write(commandline.command); | |
editor.editFileExternally(file.path); | |
commandline.open(":", file.read(), modes.EX); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
io.getRuntimeDirectories('styles').forEach(function (dir) { | |
dir.readDirectory().forEach(function (file) { | |
if (file.exists() && file.isFile() && /\.css$/.test(file.path)) | |
io.source(file.path); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let zoomEmAll = function (mustaine) { | |
const docViewer = | |
window.QueryInterface(Ci.nsIInterfaceRequestor). | |
getInterface(Ci.nsIWebNavigation). | |
QueryInterface(Ci.nsIDocShell). | |
contentViewer. | |
QueryInterface(Ci.nsIMarkupDocumentViewer); | |
docViewer.fullZoom = mustaine; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@namespace url(http://www.w3.org/1999/xhtml); | |
@-moz-document url-prefix("chrome://") { | |
.tabs-container { | |
background: url('file:///foo/bar/baz.png'); | |
background-position: 750px 0px | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_libly.js | |
_smooziee.js | |
_vimperatorrc.js | |
alert.js | |
amebanow.js | |
appendAnchor.js | |
applauncher.js | |
asdfghjkl.js | |
auto-copy.js | |
auto-focus-frame.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:plugin_loader_roots = "/project/coderepos/vimp-plugin" | |
js <<EOM | |
liberator.globalVariables.plugin_loader_plugins = <> | |
happy_hacking_vimperator | |
... | |
zoom-em-all | |
</>.toString().split(/\s+/).filter(function(n) !/^!/.test(n)); | |
EOM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
function addLocalMappings(buffer, maps) { | |
maps.forEach( | |
function (map) { | |
let [cmd, action, extra] = map; | |
let actionFunc = action; | |
extra || (extra = {}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function removeCandy (cs)[[map.names=[] for each (map in mappings.getCandidates(modes.NORMAL, c))] for each (c in cs.split(/\s+/))])('[ ]'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commands.addUserCommand( | |
['pikadorei'], | |
'You Slave of Pika!', | |
function () { | |
let (doc=content.document,colors='red green blue'.split(/\s/),i=0) | |
setInterval(function() doc.body.style.backgroundColor=colors[(i++,i%=colors.length)], 100) | |
}, | |
{}, | |
true | |
); |