matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
RE: [Release] Photo Sharing Disabler
fail.
js code: function OnGetScriptMenu() {
if (Address) {
var ret = "<ScriptMenu>";
if (Enabled) ret += "<MenuEntry Id=\"MnuChange\">Disable</MenuEntry>";
else ret += "<MenuEntry Id=\"MnuChange\">Enable</MenuEntry>";
ret += "</ScriptMenu>";
return ret;
}
}
function OnGetScriptCommands(){
if (Address) {
var ret = "<ScriptMenu>";
if (Enabled) ret += "<MenuEntry Id=\"MnuChange\">Disable</MenuEntry>";
else ret += "<MenuEntry Id=\"MnuChange\">Enable</MenuEntry>";
ret += "</ScriptMenu>";
return ret;
}
}
|
|