Stakhovsky
menuItem.setAttribute("oncommand", "loadURI('https://www.google.com')"); //левый клик - в текущей вкладке menuItem.setAttribute("oncontextmenu", "getBrowser().selectedTab = getBrowser().addTab('https://www.google.com')"); //правый - в новой
document.getElementById("context-searchselect").parentNode.insertBefore( menuItem, document.getElementById("context-searchselect") );
- вставляет наш пукт до указанного элемента (context-searchselect). ID смотрите DOM Inspector'ом:
(+ полезна будет кнопка [CB]Attributes Inspector)
document.getElementById("context-navigation").appendChild( menuItem, document.getElementById("context-navigation") );
- вставляет пукт последним элементом.
Вставьте about:newtab, вместо адреса, и будет новая вкладка (ну или chrome://speeddial/content/speeddial.xul, если, например, спиддиалом пользуетесь)
Отсутствует
Stakhovsky
скрытый текстВыделить кодКод:
menuItem.setAttribute("oncommand", "loadURI('https://www.google.com')"); //левый клик - в текущей вкладке menuItem.setAttribute("oncontextmenu", "getBrowser().selectedTab = getBrowser().addTab('https://www.google.com')"); //правый - в новойВыделить кодКод:
document.getElementById("context-searchselect").parentNode.insertBefore( menuItem, document.getElementById("context-searchselect") );- вставляет наш пукт до указанного элемента (context-searchselect). ID смотрите DOM Inspector'ом:
https://lh3.googleusercontent.com/-CAXj … /thumb.jpg
(+ полезна будет кнопка [CB]Attributes Inspector)Выделить кодКод:
document.getElementById("context-navigation").appendChild( menuItem, document.getElementById("context-navigation") );- вставляет пукт последним элементом.
Вставьте about:newtab, вместо адреса, и будет новая вкладка (ну или chrome://speeddial/content/speeddial.xul, если, например, спиддиалом пользуетесь)
Все работает, большое спасибо за помощь!)
Отсутствует
Один вопрос остался, возможно ли так сделать, что бы при клике ЛКМ сайт открывался в этой же вкладке, а при клике средней кнопкой (колесиком) в новой?
pps.еще третий вопрос) можно ли добавить туда же пункт новая вкладка?
((contextMenu) => { var array = [ { lab: "Новая вкладка", url: "about:newtab", img: "https://addons.cdn.mozilla.net/user-media/collection_icons/5574/5574260.png?m=1426540508"}, { lab: "Google", url: "https://www.google.com", img: "https://www.google.lv/favicon.ico"}, { lab: "Форум Mozilla Россия", url: "https://forum.mozilla-russia.org/index.php", img: "https://forum.mozilla-russia.org/favicon.ico"} ] array.forEach(function(m,i) { var mItem = document.createElement("menuitem"); mItem.setAttribute("label", m.lab ); mItem.setAttribute("id", "link"+i ); mItem.setAttribute("url", m.url ); mItem.setAttribute("class", "menuitem-iconic"); mItem.setAttribute("image", m.img ); mItem.addEventListener("click", openLink ); contextMenu.appendChild( mItem ); }); function openLink(e) { var url = e.target.getAttribute("url"); e.button ? gBrowser.selectedTab = gBrowser.addTab(url) : loadURI(url); }; addDestructor(()=> array.forEach(function(m,i) contextMenu.removeChild(document.getElementById('link'+i)) )); })(document.getElementById("contentAreaContextMenu") );
Отредактировано bunda1 (13-05-2015 20:42:27)
Отсутствует
У меня еще пара вопросов:
1. При загрузке Firefox, в контекстное меню эти кнопки не добавляются пока я не открою меню, я туда добавил созданую кнопку "Ссылки в контекстном меню". Можно ли сделать что бы в контекстное меню пункты добавлялись сразу?
Отсутствует
Stakhovsky
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #custombuttons-button25 { display:none!important; }
(id кнопки смотрите DOM Inspector'ом или пишите toolbarbutton[label='Название кнопки'] )), либо используйте Merge Custom Buttons
2. Смотрите адрес сами:
Отсутствует
1. Кнопку переименовал в Cntxtmenu, такой вот код вставить в инициализацию кнопки?
Отредактировано Stakhovsky (14-05-2015 09:34:54)
Отсутствует
Stakhovsky
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); #custombuttons-button25 { display:none!important; }
либо:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); toolbarbutton[label='Cntxtmenu'] { display:none!important; }
другие, если понадобится, добавлять так:
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul); toolbarbutton[label='Cntxtmenu'], toolbarbutton[label='бла-бла2'], toolbarbutton[label='бла-бла3'], toolbarbutton[label='и т.д.'] { display:none!important; }
Это вставлять в userChrome.css (если его нет, создаете в папке профиля браузера папку chrome, а в ней текстовый документ, который переименовываете в userChrome.css, и туда вставляете код (следите, чтобы userChrome.css.txt не вышел), сохраняете, перезапускаете браузер для применения), либо в Stylish, если пользуетесь.
2. У меня просто из-за стиля так выглядит. Щелкайте на значке глобуса.
Отсутствует
Stakhovsky
в секции код. При нажатии увидите это окно для текущей страницы.
Либо: Ctrl+Shift+K, введите content.location.href, ввод, и получите в ответ адрес.
Отсутствует
Получилось, страцица "about:blank", добавил в конткекстную кнопку, но открывается всеравно пустая страница, без дополнения. Можно ли назначить на кнопку именно фукцию кнопки "+"(Открыть новую вкладку)?
Отсутствует
Stakhovsky
Как впихнуть в код bunda1, если его кнопку взяли, не знаю.
Отсутствует
bunda1
Опытным путём вычислил(ох и задолбался же я по одной кнопки удалять и перезагружать браузер) что VT наглухо вешает браузер ,если в неё закрепить любую кнопку и нажать изменить http://images.vfl.ru/ii/1431675845/c9beae44/8737910.png
Как побороть,то?
Отсутствует
VORON
Да есть такое. Кстати спасибо а то я тоже с этим сталкивался и не мог понять чём дело. Попробую завтра исправить
Отредактировано bunda1 (16-05-2015 23:11:46)
Отсутствует
Нужна кнопка, что бы по нажатию на неё (вкл/выкл) показывалась и скрывалась панель вкладок
upd:
необходима немного другая кнопка. есть стиль для stylish, который скрывает вкладки. можно ли сделать кнопку, которая выводится на экран, и при нажатии так же включает/отключает данный стиль ?
Отредактировано LittleMontana (18-05-2015 12:44:06)
Отсутствует
Показать / скрыть панель вкладок(и другие любые панели изменяя id)
var bar = document.getElementById("TabsToolbar"); setToolbarVisibility(bar, bar.collapsed);
Добавлено 18-05-2015 14:33:07
Кнопка ВКЛ/ВЫКЛ стиль лежащий в Help (иконки менять на свои ессно можно)
this.checked = !this.checked; if ( this. checked ) this.image = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAm1JREFUOI2Nkt1LU3EYx59zzs45m245p5buzaUiQV0V5AIRoswSItCY0UVXdt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1xtKFLL++XFqaHn21c9/zsokMm0cvK+425lcS0f6Uze7nrD5n6uSrvJkWc6brbGZFiv+R++vKBc43dmR8JNep049Gx5+T+3HznuU37jn1FdL1F9QHYd+peSUOwwscHvt9dKO08rzf0HmxM3wAoT/zPQ5b1qQrYAakMggyDHgFjBNQI4qQR8lihtu6ayN5ksg4wAZJJlMHbsFa1GM4oRHwwXQh69T7KgIoJroWmEjVUeW0P6BT4ZmOFSNCZ8LXj4TwBX8CxQf8HsDXKDyOuCeL4kbD9ctUfpFL4y257vIaaQQdRfpHs3VdgzUBohuydAnivQENN67mS81H0b/D/XwHANAMjK57uEj/WRWRLG/oeSA18H0wFaz6DcoBq9emQDsbSqVQdYDQAsa0D+W8/WRotTskX0fZdW2M7viY74FIYi7K95wjiriefHnyUSGROZSfTQz9crwNW2fQvhJ0b7M9f7ZiUQq/I/BUZv3pIZO6EFH/b8cbt5/DiTaLNNbo5uDxOtbrCRLXsjPu527B8nY7EEOT/xFsuT3g2w48HVl/hqlMGkEsE7Hhoz9hCz81YdG1EIwgW8dDgd+sK2SuqDw+QlhMAqD5czzBfDFW+Md5tO4219wJ/zR/wXRUcV324zcUtAQA3HpVLPtaCFW7DCITQZtibXVKZVlqjVfLaP9Rml1b6S0uvD46NjqqnE8Xe42d+f9hK+y8c6jNrdcGm9QAAAABJRU5ErkJggg=="; const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService); var uri = makeURI("data:text/css," + encodeURIComponent( this.Help )); if ( sss.sheetRegistered(uri, sss.AGENT_SHEET) ) sss.unregisterSheet(uri, sss.AGENT_SHEET); else sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
Отредактировано HaGEN (18-05-2015 14:33:07)
Отсутствует
Я так понял, второй код надо в окошко "код" новой кнопки?
Выяснилось, что нет возможности при установке новой кнопки вытащить её куда-либо, в списке кнопок (меню-дополнения) оно есть, а в окошке "изменить/настроить" - для того, что бы вытащить - нет.
Как можно это исправить ?
Отредактировал уже установленную кнопку иконка которой видна в том меню "изменить". При нажатии вижу - что меняется иконка (лампочка такая - круто получилось), но самих изменений с отображением панели вкладок не произошло.
#main-window[sizemode="normal"] > #titlebar {
-moz-appearance: none !important;
}
this.onclick = function(e) {
if ( e.button == 0 ) {
var uri = makeURI("data:text/css," + encodeURIComponent(css));
var enabled = sss.sheetRegistered( uri, sss.USER_SHEET );
enabled ? sss.unregisterSheet( uri, sss.USER_SHEET ) : sss.loadAndRegisterSheet( uri, sss.USER_SHEET )
};
};
Отредактировано LittleMontana (18-05-2015 18:11:22)
Отсутствует
Я так понял, второй код надо в окошко "код" новой кнопки?
Да. А во вкладке Help нужный стиль. Init. пустая.
--------------
Кнопка конвертирует иконку/картинку (ico, png) в base64 кокраз для ...
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u041A%u043E%u043D%u0432%u0435%u0440%u0442%u0438%u0440%u043E%u0432%u0430%u0442%u044C%20%u0438%u043A%u043E%u043D%u043A%u0443%20%u0432%20base64%20-%20%u0440%u0435%u0437%u0443%u043B%u044C%u0442%u0430%u0442%20%u0432%20%u0431%u0443%u0444%u0435%u0440%u0435%20%u043E%u0431%u043C%u0435%u043D%u0430%20%u0441%u043A%u043E%u043F%u0438%u0440%u043E%u0432%u0430%u043D%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/vnd.microsoft.icon%3Bbase64%2CAAABAAEAEBAAACAAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAQAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEiIzWwkbMGYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYoOlMQJT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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARITNQCRksXwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGzVNYg4nQ28AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/n8AAP5/AAD+fwAAuB0AAIABAADCAwAA4AcAAMAHAADEJwAAwAcAAMJDAACAAQAAsB0AAPx/AAD+fwAA/n8AAA%3D%3D%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B/*Initialization%20Code*/%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5B%0Avar%20filePicker%20%3D%20Cc%5B%27@mozilla.org/filepicker%3B1%27%5D.createInstance%28Ci.nsIFilePicker%29%3B%0AfilePicker.init%28window%2C%20%22%u0424%u0430%u0439%u043B%22%2C%20filePicker.modeOpen%29%3B%0AfilePicker.appendFilters%28filePicker.filterImages%29%3B%0A%0Aif%20%28filePicker.show%28%29%20%3D%3D%20filePicker.returnOK%29%20%7B%0A%0A%09var%20url%20%3D%20filePicker.fileURL.spec%3B%0A%09var%20ext%20%3D%20url.substring%28url.lastIndexOf%28%22.%22%29%20+%201%2C%20url.length%29%3B%0A%09var%20mimeType%3B%0A%0A%09var%20mimeTypes%20%3D%20%7B%0A%09%0A%09%09png%3A%20%22png%22%2C%0A%09%09jpg%3A%20%22jpeg%22%2C%0A%09%09ico%3A%20%22vnd.microsoft.icon%22%2C%0A%09%09gif%3A%20%22gif%22%2C%0A%09%09bmp%3A%20%22x-bmp%22%0A//%09%09bla%3A%20%22bla-bla-bla%22%0A%09%7D%0A%09if%20%28ext%20in%20mimeTypes%29%20mimeType%20%3D%20%22image/%22%20+%20mimeTypes%5Bext%5D%0A%09else%20mimeType%20%3D%20%22%22%3B%0A%09%0A%09var%20req%20%3D%20new%20XMLHttpRequest%28%29%3B%0A%09req.open%28%22GET%22%2C%20url%2C%20true%29%3B%0A%09req.responseType%20%3D%20%22blob%22%3B%0A%09req.onload%20%3D%20function%28%29%20%7B%0A%0A%09%09var%20reader%20%3D%20new%20FileReader%28%29%3B%0A%09%09reader.onload%20%3D%20function%28%29%20%7B%0A%09%09%0A%09%09%09var%20result%20%3D%20%22data%3A%22%20+%20mimeType%20+%20%22%3Bbase64%2C%22%20+%20btoa%28reader.result%29%3B%0A%09%09%09gClipboard.write%28result%29%3B%0A%09%09%7D%0A%09%09reader.readAsBinaryString%28req.response%29%3B%0A%09%7D%0A%09req.send%28null%29%3B%0A%7D%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
Code
var filePicker = Cc['@mozilla.org/filepicker;1'].createInstance(Ci.nsIFilePicker); filePicker.init(window, "Файл", filePicker.modeOpen); filePicker.appendFilters(filePicker.filterImages); if (filePicker.show() == filePicker.returnOK) { var url = filePicker.fileURL.spec; var ext = url.substring(url.lastIndexOf(".") + 1, url.length); var mimeType; var mimeTypes = { png: "png", jpg: "jpeg", ico: "vnd.microsoft.icon", gif: "gif", bmp: "x-bmp" // bla: "bla-bla-bla" } if (ext in mimeTypes) mimeType = "image/" + mimeTypes[ext] else mimeType = ""; var req = new XMLHttpRequest(); req.open("GET", url, true); req.responseType = "blob"; req.onload = function() { var reader = new FileReader(); reader.onload = function() { var result = "data:" + mimeType + ";base64," + btoa(reader.result); gClipboard.write(result); } reader.readAsBinaryString(req.response); } req.send(null); }
Отредактировано HaGEN (18-05-2015 19:29:54)
Отсутствует
Да нет, хотел, что бы вы изменили кнопку в последнем моем сообщении, что бы при нажатии на неё погасала или загоралась лампочка))
Спасибо!
Отредактировано LittleMontana (18-05-2015 20:27:10)
Отсутствует
. При нажатии вижу - что меняется иконка (лампочка такая - круто получилось), но самих изменений с отображением панели вкладок не произошло.
А эсли так :
this._handleClick = ()=> setStyleForPages(cbu.checked = !cbu.checked); var icon = self.ownerDocument.getAnonymousElementByAttribute(self, "class", "toolbarbutton-icon"); var styleImage = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAANkE3LLaAgAAArVJREFUeJxtkktoVGcUx3/fd+/ceahMRum0E6vB+IKYFtpqFRFJu+imrgRdBkFoKC5cCC5cOM7GnQuXFqTSbqQWSsGFjS22Gsn4SqJJFCXJjBlnJol5mHHinbn3zj1dTKdMZA4c+M7hf37nnI+jeM8eXiLQGSMSqfGhrvEBBlqExYrLTC7M2+6jOM161Ry8uEhwU4L23Py2c/HNO7ujnT1xtKFLL++XFqaHn21c9/zsokMm0cvK+425lcS0f6Uze7nrD5n6uSrvJkWc6brbGZFiv+R++vKBc43dmR8JNep049Gx5+T+3HznuU37jn1FdL1F9QHYd+peSUOwwscHvt9dKO08rzf0HmxM3wAoT/zPQ5b1qQrYAakMggyDHgFjBNQI4qQR8lihtu6ayN5ksg4wAZJJlMHbsFa1GM4oRHwwXQh69T7KgIoJroWmEjVUeW0P6BT4ZmOFSNCZ8LXj4TwBX8CxQf8HsDXKDyOuCeL4kbD9ctUfpFL4y257vIaaQQdRfpHs3VdgzUBohuydAnivQENN67mS81H0b/D/XwHANAMjK57uEj/WRWRLG/oeSA18H0wFaz6DcoBq9emQDsbSqVQdYDQAsa0D+W8/WRotTskX0fZdW2M7viY74FIYi7K95wjiriefHnyUSGROZSfTQz9crwNW2fQvhJ0b7M9f7ZiUQq/I/BUZv3pIZO6EFH/b8cbt5/DiTaLNNbo5uDxOtbrCRLXsjPu527B8nY7EEOT/xFsuT3g2w48HVl/hqlMGkEsE7Hhoz9hCz81YdG1EIwgW8dDgd+sK2SuqDw+QlhMAqD5czzBfDFW+Md5tO4219wJ/zR/wXRUcV324zcUtAQA3HpVLPtaCFW7DCITQZtibXVKZVlqjVfLaP9Rml1b6S0uvD46NjqqnE8Xe42d+f9hK+y8c6jNrdcGm9QAAAABJRU5ErkJggg=="; function setStyleForPages() { var css = self.Help; var sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService); var uri = makeURI("data:text/css," + encodeURIComponent(css)); try { sss.unregisterSheet(cbu.previousUri || uri, 0) } catch(e) {}; cbu.previousUri = uri; cbu.checked && sss.loadAndRegisterSheet(uri, 0); icon.src = cbu.checked ? styleImage : self.image; }; cbu.checked && setStyleForPages();
Добавлено 18-05-2015 22:36:15
В инициализацию.
Отредактировано bunda1 (18-05-2015 22:36:15)
Отсутствует
LittleMontana ЯННП зачем стиль если есть норм. команда для скрытия панелей.
Вот с твоим стилем кнопка и меняецца иконка:
custombutton://%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%0D%0A%3Ccustombutton%20xmlns%3Acb%3D%22http%3A//xsms.nm.ru/custombuttons/%22%3E%0A%20%20%3Cname%3E%u0412%u043A%u043B%u0430%u0434%u043A%u0438%20%u043F%u0430%u043D%u0435%u043B%u044C.%20%20%u043F%u043E%u043A%u0430%u0437%u0430%u0442%u044C/%u0441%u043A%u0440%u044B%u0442%u044C%202%3C/name%3E%0A%20%20%3Cimage%3E%3C%21%5BCDATA%5Bdata%3Aimage/x-icon%3Bbase64%2CAAABAAIAGBgAAAEAIACICQAAJgAAABAQAAABACAAaAQAAK4JAAAoAAAAGAAAADAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAXl5eDVxcXM1YWFj/U1NT/09PT9VNTU0SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfX18VWVlZvlNTU8BNTU0cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA/4MAAP4DAAD8DwAA+B8AAPg/AAD4PwAA+D8AAPg/AACABwAAwAcAAMAPAADgHwAA8D8AAPh/AAD//wAA%5D%5D%3E%3C/image%3E%0A%20%20%3Cmode%3E0%3C/mode%3E%0A%20%20%3Cinitcode%3E%3C%21%5BCDATA%5B/*Initialization%20Code*/%5D%5D%3E%3C/initcode%3E%0A%20%20%3Ccode%3E%3C%21%5BCDATA%5Bthis.checked%20%3D%20%21this.checked%3B%0A%0Aif%20%28%20this.%20checked%20%29%20%0Athis.image%20%3D%20%22data%3Aimage/x-icon%3Bbase64%2CAAABAAIAGBgAAAEAIACICQAAJgAAABAQAAABACAAaAQAAK4JAAAoAAAAGAAAADAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXFxcK1hYWLtVVVXCUlJSPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABeXl4aW1tb51hYWP9VVVX/UlJS+U5OTj8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFxcXMJYWFj/U1NT/09PT/9LS0sxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABcXFzrWFhY/1NTU/9PT0//TU1NEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvb2+Kampq/2VlZf9hYWH/XFxc/1hYWP9TU1P/T09P/0pKSv9GRkb/QUFB/z4+PosAAAAAAAAAAAAAAAAAAAAAAAAAAGpqap1lZWX/YWFh/1xcXP9YWFj/U1NT/09PT/9KSkr/RkZG/0FBQaEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAABmZmYDZWVlr2FhYf9cXFz/WFhY/1NTU/9PT0//SkpK/0ZGRrVNTU0EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG1tbQdhYWG/XFxc/1hYWP9TU1P/T09P/0pKSsZNTU0KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXl5eDVxcXM1YWFj/U1NT/09PT9VNTU0SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfX18VWVlZvlNTU8BNTU0cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA/4MAAP4DAAD8DwAA+B8AAPg/AAD4PwAA+D8AAPg/AACABwAAwAcAAMAPAADgHwAA8D8AAPh/AAD//wAA%22%3B%0A%0Aconst%20sss%20%3D%20Cc%5B%22@mozilla.org/content/style-sheet-service%3B1%22%5D.getService%28Ci.nsIStyleSheetService%29%3B%20%20%0Avar%20uri%20%3D%20makeURI%28%22data%3Atext/css%2C%22%20+%20encodeURIComponent%28%20this.Help%20%29%29%3B%0A%0Aif%20%28%20sss.sheetRegistered%28uri%2C%20sss.AGENT_SHEET%29%20%29%20sss.unregisterSheet%28uri%2C%20sss.AGENT_SHEET%29%3B%0Aelse%20%0Asss.loadAndRegisterSheet%28uri%2C%20sss.AGENT_SHEET%29%3B%5D%5D%3E%3C/code%3E%0A%20%20%3Caccelkey%3E%3C%21%5BCDATA%5BAlt+w%5D%5D%3E%3C/accelkey%3E%0A%20%20%3Chelp%3E%3C%21%5BCDATA%5B%23main-window%20%23TabsToolbar%20%7B%0A%09visibility%3A%20collapse%20%21important%3B%0A%09%7D%0A%09%0A%23main-window%5Bsizemode%3Dnormal%5D%0A%23titlebar%20%7B%0A%09-moz-appearance%3A%20none%20%21important%3B%0A%09%7D%5D%5D%3E%3C/help%3E%0A%20%20%3Cattributes/%3E%0A%3C/custombutton%3E
Код
this.checked = !this.checked; if ( this. checked ) this.image = "data:image/x-icon;base64,AAABAAIAGBgAAAEAIACICQAAJgAAABAQAAABACAAaAQAAK4JAAAoAAAAGAAAADAAAAABACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXFxcK1hYWLtVVVXCUlJSPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABeXl4aW1tb51hYWP9VVVX/UlJS+U5OTj8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGZmZgZfX1/HW1tb/1hYWP9VVVX/UlJS/09PT+9NTU0qAAAAAAAAAAAAAAA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WFhY/1NTU/9PT0//TU1NEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABvb2+Kampq/2VlZf9hYWH/XFxc/1hYWP9TU1P/T09P/0pKSv9GRkb/QUFB/z4+PosAAAAAAAAAAAAAAAAAAAAAAAAAAGpqap1lZWX/YWFh/1xcXP9YWFj/U1NT/09PT/9KSkr/RkZG/0FBQaEAAAABAAAAAAAAAAAAAAAAAAAAAAAAAABmZmYDZWVlr2FhYf9cXFz/WFhY/1NTU/9PT0//SkpK/0ZGRrVNTU0EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAG1tbQdhYWG/XFxc/1hYWP9TU1P/T09P/0pKSsZNTU0KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXl5eDVxcXM1YWFj/U1NT/09PT9VNTU0SAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABfX18VWVlZvlNTU8BNTU0cAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//wAA/4MAAP4DAAD8DwAA+B8AAPg/AAD4PwAA+D8AAPg/AACABwAAwAcAAMAPAADgHwAA8D8AAPh/AAD//wAA"; const sss = Cc["@mozilla.org/content/style-sheet-service;1"].getService(Ci.nsIStyleSheetService); var uri = makeURI("data:text/css," + encodeURIComponent( this.Help )); if ( sss.sheetRegistered(uri, sss.AGENT_SHEET) ) sss.unregisterSheet(uri, sss.AGENT_SHEET); else sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
Help
#main-window #TabsToolbar { visibility: collapse !important; } #main-window[sizemode=normal] #titlebar { -moz-appearance: none !important; }
Отсутствует
Ребят, при установке новой кнопки (через URL), диалоговое окно установки кнопки появляется 2 раза. Если нажать только один раз установить - то кнопка не появляется. С чем это может быть связанно ?Особо не мешает, но при создании новых кнопок самому, становится невозможно вытащить кнопку какую надо.
ps ни один из предложенных выше вариантов не работает. upd: как то странно, само по себе вытащилось, и заработало. то что с черной стрелочкой.
ps2:
можно ли данный код кнопки дополнить, что бы при появлении скрытии вкладок менялась иконка. спасибо! (только он и работает)
this.onclick = function(e) {
if ( e.button == 0 ) {
var uri = makeURI("data:text/css," + encodeURIComponent(css));
var enabled = sss.sheetRegistered( uri, sss.USER_SHEET );
enabled ? sss.unregisterSheet( uri, sss.USER_SHEET ) : sss.loadAndRegisterSheet( uri, sss.USER_SHEET )
};
};
Отредактировано LittleMontana (19-05-2015 12:38:11)
Отсутствует