Created
July 24, 2011 19:18
-
-
Save vasilisvg/1102965 to your computer and use it in GitHub Desktop.
Delicious with a usable text area
This file contains hidden or 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
// ==UserScript== | |
// @name Delicious - input | |
// @namespace http://vasilis.nl/ | |
// @description Embiggens the textarea on Delicious | |
// @include http://www.delicious.com/save* | |
// ==/UserScript== | |
(function() { | |
var el = document.createElement('style'); | |
el.innerHTML = '#saveNotes{min-height:200px!important;min-width:600px;font-size:16px}.fieldMsg{width:594px!important}'; | |
document.head.appendChild(el); | |
}()); |
Changed the script thanks to mathiasbynens.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
document.body.innerHTML = (document.body.innerHTML + bigStyle);
could be written asdocument.body.innerHTML += bigStyle;
but still you shouldn’t use it as it will remove all bound event handlers.Use
document.body.appendChild(bigStyleElement)
instead, or evendocument.head.appendChild(bigStyleElement)
.Update: I meant something like this: