Skip to content

Instantly share code, notes, and snippets.

View context-search-compact.js
(function() {
// Context Search Compact 2016-08-11
'use strict';
let prefs = Cu.import('resource://gre/modules/Preferences.jsm', {}).Preferences;
let gSessionStore = (Cc['@mozilla.org/browser/sessionstore;1'] ||
Cc['@mozilla.org/suite/sessionstore;1']).getService(Ci.nsISessionStore);
let defaultImage = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmlld0JveD0iMCAwIDI0IDI0Ij4NCjxnIGZpbGw9IiNmYmZiZmIiIHN0cm9rZT0icmdiYSgwLDAsMCwwLjUpIiBzdHJva2Utd2lkdGg9Ii44Ij4NCiAgPGcgaWQ9InNlYXJjaCI+DQogICAgPHBhdGggZD0iTTIsMTAuMDE4YzAsNC40MywzLjU4NSw4LjAxOSw4LjAwOSw4LjAxOSBjMS42MDMsMCwzLjA5NS0wLjQ3Myw0LjM0OC0xLjI4NWw0LjgwNiw0LjgxYzAuNTgsMC41ODMsMS41MjMsMC41ODMsMi4xMDUsMGwwLjI5Ni0wLjI5N2MwLjU4Mi0wLjU4MywwLjU4Mi0xLjUyNywwLTIuMTEgbC00LjgwOC00LjgxNGMwLjgtMS4yNDcsMS4yNjUtMi43MywxLjI2NS00LjMyM2MwLTQuNDMtMy41ODctOC4wMTgtOC4wMTItOC4wMThDNS41ODUsMiwyLDUuNTg5LDIsMTAuMDE4eiBNNS4xMDQsMTAuMDIxIGMw
View auto-clear-searchbar.js
(function() {
// Автоматически очистить панель поиска после запуска поиска
// 2016-02-01
// https://forum.mozilla-russia.org/viewtopic.php?id=53319
'use strict';
let searchBarAutoClear = {
counter: 0,
View context-search-2.js
(function() {
// Context Search 2 2016-01-19
'use strict';
let options = {
loadInBackground: false,
// true - открывать вкладки в фоне
pinnedEngineName: '',