08/06/20 00:00:50 GJufGefe0
>>389
ありがとう、出来た・・・すげーめんどくさいけどwww
あと日本語が含まれるとスクリプトが動かないっぽい感じの挙動だったから苦労したわwww
>>395
1.userChrome.js.xpi をインストール
2.userChrome.jsに追加
/* :::::::: Sub-XUL Loader ::::::::::::::: */
// automatically includes all files ending in .uc.xul from the profile's chrome folder
(function() {
var chromeDir = Components.classes["@mozilla.org/file/directory_service;1"].getService(Components.interfaces.nsIProperties).get("UChrm", Components.interfaces.nsILocalFile);
var files = chromeDir.directoryEntries.QueryInterface(Components.interfaces.nsISimpleEnumerator);
if(files.hasMoreElements()) loadXUL(files);
function loadXUL(files) {
var file = files.getNext().QueryInterface(Components.interfaces.nsIFile);
if (/\.uc\.xul$/i.test(file.leafName)) {
document.loadOverlay(Components.classes["@mozilla.org/network/io-service;1"].getService(Components.interfaces.nsIIOService).getProtocolHandler("file").QueryInterface(Components.interfaces.nsIFileProtocolHandler).getURLSpecFromFile(file), null);
}
if(files.hasMoreElements()) setTimeout(loadXUL, 0, files);
}
})();
3.userChrome.jsのフォルダにsearchbutton.uc.xulもぶっ込む
4.searchbutton.uc.xulを編集してボタンの追加(適当に)