Greasemonkey Script For Changing "inbox" To "test" At Yahoo Mail
Solution 1:
well greasemonkey is just javascript injected into the page.
So assuming you know how to use greasemonkey, you just need to write a short peice of code to find the link/button and manipulate its text something like (if you don't have jQuery):
document.getElementById('buttonIDName').innerHtml = 'test';
document.getElementById('buttonIDName').href = 'javascript:alert("you clicked test")';
If you did happen to have Jquery or the like available then you could do something like:
$('#buttonIDName').html('test').click(function(){alert('you clicked test');});
Greasemonkey is just another JS script, that gets run after page load.
Solution 2:
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 iframesreturn;
$(document).ready (Greasemonkey_main);
functionGreasemonkey_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")
}
);
}
Post a Comment for "Greasemonkey Script For Changing "inbox" To "test" At Yahoo Mail"