userscripts - Replace Text and Link Target on a page -


i want make userscript changes gmail link on google.com inbox one.

<a class="gb_la" href="https://mail.google.com/mail/?tab=wm&amp;authuser=0" data-pid="23" data-ved="0cbeqwi4oaa">gmail</a> 

to:

<a class="gb_la" href="https://inbox.google.com/" data-pid="23" data-ved="0cbeqwi4oaa">inbox</a> 

but know nothing javascript and/or userscripts. can me ?

html:

<a class="gb_la" href="https://mail.google.com/mail/?tab=wm&amp;authuser=0" data-pid="23" data-ved="0cbeqwi4oaa" id="link">gmail</a>

javascript: link=document.getelementbyid("link"); link.src="https://inbox.google.com/"; link.innerhtml="inbox";


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -