-
Cool custom scripts (Contribute more)
site '*://mail.google.com/*' {
set ignorenumerickeys
unmap `
}
site '*://*.reddit.com/*' {
" use reddit RES extension instead
unmap j
unmap k
unmap J
unmap K
unmap s
}" site filters
siteFilters() -> {{
var filters = {
'*://*.reddit.com/*': {
reject: [
'a:not([href])',
'*[onclick^=click_thing]',
],
accept: [
'.grippy'
],
},
'*://*.google.*/*': {
reject: [
'li[class$="_dropdownitem"]',
'div[class$="_dropdown"]',
'div[aria-label="Apps"]',
'.hdtbna.notl',
'.irc_rit',
'a[href^="imgres"]',
'div[id=hdtbMenus]',
'div[aria-label="Account Information"]',
'img[jsaction^="load:"]'
],
},
'*://github.com/*': {
reject: [
'.select-menu-modal-holder.js-menu-content'
],
accept: [
'.js-menu-close',
],
},
'*://twitter.com/*': {
accept: [
'.new-tweets-bar.js-new-tweets-bar'
],
},
'*://imgur.com/*': {
accept: [
'.thumb-title',
'.carousel-button'
],
},
'*://www.pogdesign.co.uk/*': {
accept: ['.largemenutext', '.dropdown', '.icon-heart selectison']
}
};
return filters;
}}reloadcvim() -> {{
console.log('reloading cvim ' + (new Date()));
var value = "call :source /home/hassen/.cvimrc<CR>";
Mappings.parseLine(value);
window.location.reload(true);
}}copyDescription(elem) -> {{
var text = elem.innerText || elem.value;
RUNTIME('copy', {text: text});
}}
map yd createScriptHint(copyDescription)openLinkIncognito(link) -> {{
var value = "call :tabopen " + link.href + " |<CR>"
Mappings.parseLine(value);
}}reopenInIncognito(link) -> {{
var value = "call :tabopen " + window.location.href + " |<CR>"
Mappings.parseLine(value);
}}(bypassing age restriction when not authenticated)
" youtube
youtubeFullscreen() -> {{
var location=window.location.href;
location = location.replace('watch', 'watch_popup')
window.location.href=location;
}}
map ;yt :call youtubeFullscreen<CR>-
dev = active development branch and could be unstable
-
master = stable code and latest stable release
-
./scripts/watch.sh -
Uncomment loop in background_scripts/extension-reloader.js:25
-
reload extension or restart browser
-
tabs reload whenever a file is saved
Original files are in adoc, generated files are in HTML. We store both instead of relying on github pages.
cd docs
bundle
asciidoctor -v -B docs/ *.adoc-
review diffs + quality
-
merge on dev branch
-
git checkout -b rosshadden-fix/editing-divs master
-
git pull git://github.com/rosshadden/mouseless.git fix/editing-divs
-
git co dev
-
git merge fix/editing-divs
-
rebase + amend if needed - verify ticket number + code quality
-
-
add to commands.adoc
-
update changelog.adoc
-
add user to thanks.adoc
-
render all adoc files
Check issues labeled question