Update?

in
Subscribe to Update? 2 posts, 2 voices



Mando User

Kannst du das Script dem neuen Studi VZ anpassen? Danke!!

 
Henning Scha... Scriptwright

Hier ist der geupdatete Code:

var li_tag = document.createElement("li");
var a_tag = document.createElement("a");
a_tag.setAttribute('href', '/Logout');
var logout_text = document.createTextNode("Raus hier");
a_tag.appendChild(logout_text);
li_tag.appendChild(a_tag);
document.getElementById('Grid-Navigation-Main').wrappedJSObject.appendChild(li_tag);

Die Funktion ist jetzt der Einfachheit halber auch in den VZ Tools enthalten (Service-Update vom 10. Februar) - das mit dem Logout-Link funktioniert übrigens auch ohne die Sidebar.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel