Source for "Gmail Emoticons !"

By deodrus
Has no other scripts.


// ==UserScript==
// @name          Gmail Emoticons !!
// @namespace     http://userscripts.org/users/26553;scripts
// @include       http://mail.google.com/*
// @include       https://mail.google.com/*
// ==/UserScript==

// By Deodrus
// Emoticons button in Gmail Compose Window.

// How to use:
// 1) You can just DRAG AND DROP the emoticons onto your Compose-message box in Gmail.
// ...
// OR, (the longer method, for ANY IMAGE on the net) is:
// ...
// 1) Click on the Emoticons button next to Check Spelling in the Compose Window in Gmail.
// 2) DRAG your mouse cursor over the Emoticon image to HIGHLIGHT it (as you would highlight/select text).
// 3) Once the image is darkened (selected), right-click & press COPY (NOT "copy image").
// 4) Go back to your Gmail compose-mail box and right-click & press paste.
// 5) If it doesn't work, follow step 2 and 3 carefully! That's where your mistake is.

(function () {
 
  var butt = document.createElement ('BUTTON');
  var buttext = document.createTextNode ('Emoticons!');
  butt.appendChild (buttext);
  
  butt.setAttribute('style', 'color:#000000; background-color:#C3D9FF; font-weight:none; font-style:underline; border:0px; cursor:pointer; text-decoration:none;');

  butt.setAttribute('title', 'Emoticons from Deodrus');

  butt.setAttribute('onclick', "window.open('http://www.busrc.com/temp/gmail_emoticons.htm','Gmail_Emoticons','width=425,height=385,resizable=yes')");

  var composeEditBar = document.getElementById('sp_compose'); 
  var parentDiv = composeEditBar.parentNode; 
  parentDiv.insertBefore(butt, composeEditBar);

}) ();