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
/** | |
* Event handler to prevent richtext and linebreaks in contentEditable DIVs | |
*/ | |
$('body').on('keydown paste', 'div.editfield', function(e) { | |
var $field = $(e.currentTarget); | |
if (e.keyCode===13 && $field.hasClass('multiline')) { | |
return true; | |
} else if (e.keyCode===13 || e.type==='paste') { | |
setTimeout(function() { | |
$field.html($field.text()); |
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
// Minifiy the following with http://jscompress.com/ and save the string in a Bookmark in your browser | |
javascript:(function() { | |
var extScript = document.createElement('script'); | |
extScript.type = 'text/javascript'; | |
extScript.src = 'https://raw.github.com/gist/2576050/009a1d68f3c308bf8ebb041a3b3137d01713673d/enlink.js'; | |
document.body.appendChild(extScript); | |
}()); |
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
/* Evernote Link Bookmarklet V. 1.0 | |
Rene Huber, 2012 | |
www.prosinus.ch | |
While displaying a note in the Evernote webclient, the bookmarklet extracts a link which can be embedded in other notes. | |
*/ | |
// Load jQuery | |
if (typeof jQuery == 'undefined') { | |
var jQ = document.createElement('script'); |