Firefox userChrome.js greasemonkeyスクリプトスレ17
■ このスレッドは過去ログ倉庫に格納されています
0570名無しさん@お腹いっぱい。
2011/11/05(土) 12:52:14.33ID:YfMHcI5R0動作はするものの他の隠れていたコンテキストメニューが全て出てきてしまいます。
どなたか原因が分からないでしょうか?
<?xml version="1.0"?>
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript" src="chrome://test/content/overlay.js">
</script>
<script>
function URL_Check() {
var testitem = document.getElementById("test");
testitem.hidden = !content.document.URL.match(/^http:\/\/www\.google\.co^.jp\/.+/);
}
</script>
<menupopup id="contentAreaContextMenu" onpopupshowing="URL_Check();">
<menuitem id="test" label="テスト" oncommand="Test();" />
</menupopup>
</overlay>
■ このスレッドは過去ログ倉庫に格納されています