Update: I had only tested the script on my main Yahoo account which is on the UK domain. Of course, Yahoo uses markedly different code for different countries.
The script, below has been updated to work on the US domain and (probably/hopefully) most Yahoo editions in English.
"Well i'm a newbie, could some one please write the script to change the word "inbox" to "test" on yahoo mail?
Well, since that script took 60 seconds to write and 60 seconds to test, here it is...
/* Save this file as "YaHellFoo.user.js". Then open it (Ctrl-O) with Firefox and
let Greasemonkey install it.
*/
// ==UserScript==
// @name Dirt Simple Demo, just uses jQuery to change the "Inbox" link to "test".
// @namespace YaHell
// @include http://*.mail.yahoo.com/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==
if (window.top != window.self) //don't run on frames or iframes
return;
$(document).ready (Greasemonkey_main);
function Greasemonkey_main ()
{
$("a:contains('Inbox')").each
(
function (index)
{
var jNode = $(this);
if (jNode.text() == "Inbox")
jNode.text("test")
}
);
//-- Different countries' YaHell instances display Inbox with different code!
$("span:contains('Inbox')").each
(
function (index)
{
var jNode = $(this);
if (jNode.text() == "Inbox")
jNode.text("test")
}
);
}