function view_bugMeNot() { var host = content.document.location.host; if (host) gBrowser.loadOneTab('http://www.bugmenot.com/view/' + host, null, null, null, true, false); } (function() { var c = document.getElementById('contentAreaContextMenu'); var s = document.getElementById('context-metadata'); var e; e = document.createElement('menuitem'); e.setAttribute('id', 'context-bugmenot-view'); e.setAttribute('label', 'View BugMeNot'); e.setAttribute('oncommand', 'view_bugMeNot()'); c.insertBefore(e, s); })(); //eval('canonizeUrl =' + canonizeUrl.toString().replace('gURLBar.value = ', 'if (url == "bmn") { view_bugMeNot(); gURLBar.value = null; } else gURLBar.value = ')); eval('handleURLBarCommand =' + handleURLBarCommand.toString().replace('var postData', 'if (gURLBar.value == "bmn") { view_bugMeNot(); return; } var postData'));