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
fun! FactorEvalInput(string) | |
execute "normal a" . a:string | |
normal `[v`]hd | |
return @" | |
endfun | |
fun! FactorWrite() range | |
if s:factorWrite | |
iunmap <ESC> | |
augroup factor |
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 contentScript() { | |
var script = document.createElement('script'); | |
script.setAttribute('type', 'text/javascript'); | |
script.setAttribute('src', 'data:text/javascript,' + escape( | |
'(' + function() { | |
onbeforeunload = null; | |
}.toString() + ')()')); | |
document.body.appendChild(script); | |
} |