Last active
March 29, 2019 09:19
-
-
Save Tanath/46d32ae096cc6a9566cef7ffbf945830 to your computer and use it in GitHub Desktop.
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
set nochangelog | |
set smoothscroll | |
set noautofocus | |
set autoupdategist | |
set completeonopen | |
"set showtabindices | |
let searchlimit = 30 | |
let searchengine g = "https://www.google.ca/search?num=30&safe=off&q=" | |
let defaultengine = "g" | |
"" Use gR: | |
"map <Leader>r reloadTabUncached | |
map a :tabnew g<space> | |
map <leader>t :tabattach<space> | |
map gb :buffer<Space> | |
unmap <space> | |
map <space> scrollPageDown | |
map <leader>i fullImageHint | |
map <Leader>e createEditHint | |
map <Leader>z 2zi | |
map <leader>] :script javascript:document.querySelector('video').playbackRate+=0.25;<cr> | |
map <leader>= :script javascript:document.querySelector('video').playbackRate=1.0;<cr> | |
map <leader>[ :script javascript:document.querySelector('video').playbackRate-=0.25;<cr> | |
map <leader>v :script javascript:document.querySelector('video').playbackRate=parseFloat(prompt('Video%20Playback%20Speed','1.75'))<cr> | |
map <leader>g :script javascript:q=""+(window.getSelection ? window.getSelection() : document.getSelection ? document.getSelection() : document.selection.createRange().text);if (!q) q = prompt("No text selected. Enter search phrase:", "");if (q != null) location = ("https://www.google.ca/search?safe=off&num=30&q=site:" + escape(location.hostname) + " " + escape(q.replace(/\"/g, ""))).replace(/ /g, "+");void 0<cr> | |
incognitoHint(link) -> {{ | |
RUNTIME('openLinkWindow', {url: link.href, incognito: true}); | |
}} | |
map <C-f> createScriptHint(incognitoHint) | |
imap <C-o> editWithVim | |
site '*://*.youtube.com/*' { | |
unmap > < , . c m j l f b P N | |
call :script javascript:document.querySelector('video').playbackRate=1.5;<cr> | |
} | |
site '*://*.netflix.com/*' { | |
call :script javascript:document.querySelector('video').playbackRate=1.5;<cr> | |
} | |
site '*://*.reddit.com/*' { | |
unmap a z A Z j k h x J K p P s r e c y Y u U ? [ ] | |
} | |
site '*://*.inoreader.com/*' { | |
unmap j k n p l w v b m A f q c | |
set numerichints | |
call resetScrollFocus | |
} | |
site '*://*.fanfiction.net/*' { | |
call :script javascript:var style=document.createElement('style');style.type='text/css';style.innerHTML='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';document.head.appendChild(style);var elArray=document.body.getElementsByTagName('*');for(var i=0;i<elArray.length;i++){var el=elArray[i];el.onselectstart=el.ondragstart=el.ondrag=el.oncontextmenu=el.onmousedown=el.onmouseup=function(){return true};if(el instanceof HTMLInputElement&&['text','password','email','number','tel','url'].indexOf(el.type.toLowerCase())>-1){el.removeAttribute('disabled');el.onkeydown=el.onkeyup=function(){return true};}}; | |
} | |
site '*://*.fictionpress.com/*' { | |
call :script javascript:var style=document.createElement('style');style.type='text/css';style.innerHTML='*,p,div{user-select:text !important;-moz-user-select:text !important;-webkit-user-select:text !important;}';document.head.appendChild(style);var elArray=document.body.getElementsByTagName('*');for(var i=0;i<elArray.length;i++){var el=elArray[i];el.onselectstart=el.ondragstart=el.ondrag=el.oncontextmenu=el.onmousedown=el.onmouseup=function(){return true};if(el instanceof HTMLInputElement&&['text','password','email','number','tel','url'].indexOf(el.type.toLowerCase())>-1){el.removeAttribute('disabled');el.onkeydown=el.onkeyup=function(){return true};}}; | |
} | |
let blacklists = ["https://mail.google.com/*","https://inbox.google.com/*","https://docs.google.com/*","https://play.google.com/music/*","https://www.codecademy.com/*","https://gabrielecirulli.github.io/*","https://www.bankofcanada.ca/*"] | |
" Use RES on Reddit. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment