// ==UserScript==
// @name JSHE_ModifyFunction
// @namespace jshe
// @include http://localhost/*
// @version 1
// @grant none
// ==/UserScript== alert("hello2"); function embed() {
var cells =document.getElementsByTagName("a");
for (var i = 0; i < cells.length; i++)
{
var href = cells[i].getAttribute("href");
cells[i].setAttribute("href", href + "/dummy");
}
} var script = document.createElement('script');
script.type = "text/javascript";
//script.innerHTML = "(" + embed + ")()";
script.innerHTML = embed + "\nembed();";
document.getElementsByTagName('body')[0].appendChild(script); alert("hello3");