新しいスクリプトを作成する問題を解決する

その要点は次のとおりです。Windowsユーザー名でキリル文字が使用されている場合、(Greasemonkeyメニューから)新しいスクリプトを作成すると、パスが間違っているため、エディターでファイルが開きません。

Greasemonkeyのソースを調べてみると、解決策が見つかりました。



  1. Firefoxのアドオンフォルダーに移動します。 私はこれを持っていますC:\ Users \ Cyril \ AppData \ Roaming \ Mozilla \ Firefox \ Profiles \ rwlkyo8j.default \ extensions
  2. Greasemonkeyでフォルダーを見つけます。 次のような名前になります: {e4a8a97b-f2ed-450b-b12d-ee​​082ba24781} :)同様の名前のフォルダーがたくさんある場合は、 greasemonkeyキーワードを使用して検索し、必要なフォルダーを表示するのが理にかなっています。
  3. 次に、 コンテンツディレクトリに移動して、 utils.jsファイルを開きます。 launchApplicationWithDoc関数を見つけて、コードを追加します。


var converter = Components.classes[ '@mozilla.org/intl/scriptableunicodeconverter' ]

.createInstance(Components.interfaces.nsIScriptableUnicodeConverter);

converter.charset = "windows-1251" ;

args = [converter.ConvertFromUnicode(args)];




* This source code was highlighted with Source Code Highlighter .






行の前:



var process = Components.classes[ "@mozilla.org/process/util;1" ]

.createInstance(Components.interfaces.nsIProcess);



* This source code was highlighted with Source Code Highlighter .






これが誰かに役立つことを願っています。 ご清聴ありがとうございました。



All Articles