I am managing Bookmarklet, that when it clicked create a smiley on any website.
Javascript is perfectly working but I cannot make that same script work perfectly from bookmarklet(annoying output).
javascript jsfiddle
bookmarklet jsfiddle
Now what I do is just arranging for the bookmarklet like
javascript:(function() {
// All javascript code
}
)();
Please suggest how to manage the bookmarklet script so that I can drag and drop the smiley.