TAILIEUCHUNG - Hacking Firefox ™ More Than 150 Hacks, Mods, and Customizations phần 9

Bức ảnh, được sử dụng trong các phiên bản Firefox trước khi lên 1,1, RDF tập tin được gọi là . Phong cách thể hiện cơ chế mới được giới thiệu trong Firefox sẽ đơn giản hóa vấn đề bằng cách yêu cầu một đồng bằng văn bản tập tin biểu hiện duy nhất của chrome. Phần này bao gồm các biểu hiện kiểu cũ, | Chapter 17 Creating Extensions 335 files used in Firefox versions prior to are RDF files called . The new-style manifest mechanism introduced in Firefox greatly simplifies matters by requiring a single plain-text chrome manifest file. This section covers the old-style manifests and the new manifest is described in the following sections. Each directory that contains a chrome package part in our case content skin classic and locale en-US must contain a file named . Each file describes the contents of the package directory and is used during the extension installation for registering the package in the chrome registry so the files can be accessed using chrome URLs. Note I The following examples use the name siteleds to denote our package. When creating a new . extension give it a unique name and replace all the occurrences of siteleds with the name of your extension. The file is an XML document with a special syntax. Look at the located in our content directory xml version RDF RDF xmlns RDF http 1999 02 22-rdf-syntax-ns xmlns chrome http rdf chrome RDF Seq about urn mozilla package root RDF li resource urn mozilla package siteleds RDF Seq RDF Description about urn mozilla package siteleds chrome displayName SiteLeds chrome author Alex Sirota chrome name siteleds chrome extension true RDF Seq about urn mozilla overlays RDF li resource chrome browser content RDF Seq RDF Seq about chrome browser content RDF li chrome siteleds content RDF li RDF Seq RDF RDF Now look more closely at the different parts of this file The following lines introduce a new package named siteleds that should be merged into the chrome registry RDF Seq about urn mozilla package root RDF li resource urn mozilla package siteleds RDF Seq 336 Part VI Creating Extensions and Themes Next we describe the new package and its attributes RDF Description about urn

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.