
Как сделать FF удобней — пишем свои кнопки Преамбула Я перешел на FF с IE очень давно — мне нужен был браузер с удобными средствами разработки и отладки, позволяющий полностью настраиваться «под себя» так как это был мой основной рабочий инструмент — инструмент должен быть удобным. И FF полностью справился со своими обязанностями — возможно, я кому-то покажусь странным — но я потратил около 2-х месяцев на чтение сайта с дополнениями и нахождения для меня лучшего их набора, настройки и т.д. В результате я получил мощную хорошо настроенную и удобную программу для своих нужд. Не смотря на то, что я знаю JS, мне ни разу не пришло в голову писать какие-либо расширения под ff по одной простой причине — чтобы я не захотел — это уже было в депозитории расширений. Вчера мне подумалось вот о чем — во время работы мне все время нужно переключаться и заходить на localhost, где крутится мой апач с текущим проектом, и на адрес где текущий релиз проекты выложен в интернете — вполне стандартная ситуация. Поиски... if ( ! Вот оно! Инициализация: P.S.
Extension Frequently Asked Questions This is quick set of answers to the most common issues with extension development. They are currently written with mostly Firefox in mind, but most if not all should easily translate to SeaMonkey, Thunderbird or any of the other applications. For Thunderbird, you may also find the extension HowTo or FAQ pages helpful. If you're looking for a place to get started, try our tutorial, Building an Extension or MozillaZine's Getting started tutorial. Be sure to set the development preferences. Debugging You should set development preferences before attempting to debug your extension. The Venkman JavaScript debugger may be useful in complex cases, remember to turn off the "Debug -> Exclude Browser Files" option when working on extension code. How can I see errors in my code? After you set the preference javascript.options.showInConsole to true, the errors will be reported to the Error Console. How can I display what my extension is doing? Why doesn't my script run properly? or Example code
DOM Reference - Document Object Model (DOM) The Document Object Model (DOM) is a programming interface for HTML and XML documents. It provides a structured representation of the document (a tree) and it defines a way that the structure can be accessed from programs so that they can change the document structure, style and content. The DOM provides a representation of the document as a structured group of nodes and objects that have properties and methods. Though often accessed using JavaScript, the DOM is not part of it and it can be used by other languages, though this is much less common. An introduction to the DOM is available. DOM interfaces Obsolete DOM interfaces The Document Object Model is in the process of being heavily simplified. HTML interfaces A document containing HTML is described using the HTMLDocument interface. HTML element interfaces Other interfaces Obsolete HTML intefaces SVG interfaces SVG element interfaces SVG data type interfaces Static type Animated type SVG Path segment interfaces Other SVG interfaces See also
Создание расширений под IE,Firefox,Chrome... - Форум C# для начинающих 1) Через реестр. 2) Что вы подразумеваете под поиском по-умолчанию? Дефолтную страницу, или отдельно прикрученный плагин в виде тулбара? Если первое, то опять-таки через реестр можно установить стартовую страницу для браузера. Если второе, то вам нужно копать в сторону написания плагинов для каждого браузера в отдельности. Причем, это нетривиальная задача, и понадобится немало времени, чтобы изучить все тонкости синтаксиса и прочие аспекты. Вообще, не советовал бы вам заниматься написанием плагинов для всего подряд. По этому примеру будете вытягивать остальные ключи из реестра.
What are the key differences between JavaScript and ActionScript 3 Window - Web API reference Note that properties which are objects (e.g., for overriding the prototype of built-in elements) are listed in a separate section below. Window.caches Read only Secure context Returns the CacheStorage object associated with the current context. This object enables functionality such as storing assets for offline use, and generating custom responses to requests. Window.clientInformation Read only An alias for Window.navigator. Window.closed Read only This property indicates whether the current window is closed or not. Window.cookieStore Read only Secure context Returns a reference to the CookieStore object for the current document context. Window.credentialless Read only Experimental Returns a boolean that indicates whether the current document was loaded inside a credentialless <iframe>. Window.crossOriginIsolated Read only Returns a boolean value that indicates whether the website is in a cross-origin isolation state. Window.crypto Read only Window.customElements Read only Window.document Read only
FireFox (первые шаги) Создание расширения для FireFox (первые шаги) Статья добавлена: 2005-10-04 Одним из полезнейших свойств популярного браузера FireFox является система расширений (extentions). Вступление Файловая структура Расширения FireFox имеют собственную структуру файлов и нам нужно создать ее правильно, чтобы все работало как надо. Внутри создадим еще одну директорую. +- HelloWorld/ +- chrome/ +- content/ Начинаем работу В любом расширении FireFox должно быть как минимум два файла - install.rdf и contents.rdf . install.rdf Сперва мы создадим "install.rdf". +- install.rdf В этом файле мы должны описать наше расширения для менеджера расширений браузера FireFox, сообщив ему разную полезную информацию (например - с какими версиями браузера совместимо данное расширение). xmlns:em=" Vasya Pupkin A very simple Firefox extention {65b3130e-8513-41b6-8ea8-43dbd9cc0b12} HelloWorld {ec8030f7-c20a-464f-9b0e-13a3a9e97384} content/ A very simple Firefox extention.
JavaScript JavaScript (JS) is a lightweight interpreted (or just-in-time compiled) programming language with first-class functions. While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. JavaScript is a prototype-based, garbage-collected, dynamic language, supporting multiple paradigms such as imperative, functional, and object-oriented. JavaScript's dynamic capabilities include runtime object construction, variable parameter lists, function variables, dynamic script creation (via eval), object introspection (via for...in and Object utilities), and source-code recovery (JavaScript functions store their source text and can be retrieved through toString()). This section is dedicated to the JavaScript language itself, and not the parts that are specific to Web pages or other host environments.
Developer Network Создание расширения Введение Этот краткий курс касается построения простейшего расширения для Firefox, которое будет добавлять строку статуса надпись "Hello, World!". Что нужно знать для начала работы Система разработки расширений спроектирована таким образом, что для начала разработки собственного расширения не требуется быть профессиональным программистом. Как бы то ни было, это программирование, поэтому желательно иметь некое представление о принципах работы компьютерных программ вообще и, в частности, быть знакомым с XML. Вообще желательно знание также JavaScript и CSS, однако в этой статье оно вам не понадобится. Создание проекта расширения Расширения состоят из нескольких файлов и для корректной его работы необходимо придерживаться определенных правил их расположения в директориях. /myExtension: /install.rdf /components/* /defaults/ /defaults/preferences/*.js /plugins/* /chrome.manifest /chrome/icons/default/* /chrome/ /chrome/content/ Впрочем, в вашем расширении необязательно должны быть все эти папки.