{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\tx810\f0\fs20 // ==UserScript==\par // @name Technorati and Delicious Tags for Blogger 2 \par // @description\tab Changes the Edit Post Blogger form to include a tags field.\par // @namespace http://www.mamata.com.br/greasemonkey\par // @include http://blogger.com/*\par // @include http://www.blogger.com/*\par \par // by Fabricio Zuardi (http://idomyownstunts.blogspot.com)\par // Modified by Bryan Price (http://www.bytehead.org/) to make it conducive to being XHTML compliant\par // Modified by John Jewitt (http://blogfresh.blogspot.com) to generate technorati and delicious tags at the same time. Please replace my username jrfj44 with your username in the delicious URL\par // Modified by Kevin McMahon ([email protected]) to work with Greasemonkey 0.6.4 and Firefox 1.5 Replace [sonymol] with your username in the delicious URL\par // ==/UserScript==\par \par (function() \{\par \tab appendTags = function()\{\par \tab\tab var tags_str = document.forms.namedItem('tags_in').elements.namedItem('tags').value; \par \tab\tab var tags_arr = tags_str.split(' ')\par \tab\tab var tags_html = '
Filed in: '\par \tab\tab\par \tab\tab for(var i=0;i
"\par \tab\tab\par \tab\tab var text_area = document.getElementById('textarea')\par \tab\tab var div_index = text_area.value.indexOf("
");\par \tab\tab if(div_index > 0)\{\par \tab\tab\tab text_area.value = text_area.value.substr(0,div_index)+tags_html;\par \tab\tab\}\par \tab\tab else\{\par \tab\tab\tab text_area.value += tags_html;\par \tab\tab\}\par \tab\}\par \tab\par \tab var post_options = document.getElementById("postoptions");\par \tab var tags_field = document.createElement("div");\par \tab var tags_field_html = "";\par \tab\par \tab tags_field_html += "
Filed in:
";\par \tab tags_field.innerHTML = tags_field_html;\par \par \tab post_options.parentNode.insertBefore(tags_field,post_options)\par \tab document.getElementById('button').addEventListener("click", appendTags, true);\par \})()\par }
1
Hosted by www.Geocities.ws