Monday, 10 September 2012

safari free download





You create extensions using Extension Builder, which is built into Safari 5.0 and later. Open Extension Builder, tell it to create an extension folder, drag your HTML, JavaScript, and CSS style sheets into the folder, fill out the fields in Extension Builder, and you’re ready to go.
The main ingredients of an extension are:
  • Global HTML page—code that’s loaded once, when Safari launches or when your extension is enabled. This is the ideal place to put the code for buttons in the Safari toolbar, extension menus, or contextual menus. This page is never displayed; it’s just for logic.
  • Content (HTML, CSS, JavaScript, media)—HTML content and interactive controls that you display in popovers, extension bars, or in tabs as full-page content. Extension bar and popover files have access to the Safari app and can include logic for menus or toolbar items.
  • Menu Items (labels, images)—items that appear in extension menus that you define, or are added to Safari’s existing contextual menus.
  • Injected scripts—scripts to be injected into browser content. These scripts can read, modify, add to, or delete content.
  • Injected style sheets—user style sheets that can modify the display of web content by overriding or adding to the styles normally applied.
  • Icon image—the icon for your extension.




No comments:

Post a Comment