{"json_modified": "2016-09-21T04:47:34.034857", "uuid": "1c288a50-7c6e-482e-88c7-5095652e9ecb", "title": "Content Scripts", "url": "/en-US/docs/Mozilla/Add-ons/SDK/Guides/Content_Scripts", "tags": ["Add-on SDK"], "translations": [{"uuid": "4722260c-f63f-4cc7-b198-579579cd9175", "title": "Content Scripts", "url": "/de/docs/Mozilla/Add-ons/SDK/Guides/Content_Scripts", "tags": [], "summary": "Viele Add-ons m\u00fcssen den Inhalt von Webseiten modifizieren oder auf diesen zugreifen k\u00f6nnen. Der Grundcode des Add-on\u00a0 bekommt aber keinen direkten Zugriff auf Webinhalte. Stattdessen m\u00fcssen SDK Add-ons den Code,\u00a0 der Zugriff auf Webinhalte erh\u00e4lt in seperate Skripte auslagern, die sogenannten \"Content Scripts\". Diese Seite beschreibt wie man Content Scripts entwickelt und diese implementiert. ", "localization_tags": [], "locale": "de", "last_edit": "2015-07-24T06:09:37", "review_tags": ["technical", "editorial"]}, {"uuid": "82d16282-0fe3-4028-8ee2-82d1cb6e2eb5", "title": "Content Scripts", "url": "/ja/docs/Mozilla/Add-ons/SDK/Guides/Content_Scripts", "tags": [], "summary": "\u30a2\u30c9\u30aa\u30f3\u306e\u591a\u304f\u306f\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3057\u4fee\u6b63\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u30a2\u30c9\u30aa\u30f3\u306e\u30e1\u30a4\u30f3\u306e\u30b3\u30fc\u30c9\u306f\u76f4\u63a5\u30a6\u30a7\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u305b\u3093\u3002\u00a0\u4ee3\u308f\u308a\u306b\u30a2\u30c9\u30aa\u30f3 SDK \u306f\u00a0content scripts\u00a0\u3068\u547c\u3070\u308c\u308b\u5225\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u30a6\u30a7\u30d6\u30b3\u30f3\u30c6\u30f3\u30c4\u306b\u30a2\u30af\u30bb\u30b9\u3057\u307e\u3059\u3002\u3053\u306e\u30da\u30fc\u30b8\u3067\u306f content scripts \u306e\u958b\u767a\u30fb\u5b9f\u88c5\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-07-27T05:25:22", "review_tags": []}, {"uuid": "a1b137c4-21ea-42b9-aeae-9f0c39d9a316", "title": "Content Scripts", "url": "/nl/docs/Mozilla/Add-ons/SDK/Guides/Content_Scripts", "tags": [], "summary": "", "localization_tags": ["inprogress"], "locale": "nl", "last_edit": "2014-07-24T06:06:32", "review_tags": []}, {"uuid": "425b915d-f044-4a05-be48-270e1f038cd3", "title": "\u0421\u043a\u0440\u0438\u043f\u0442\u044b Content Scripts", "url": "/ru/docs/Mozilla/Add-ons/SDK/Guides/%D0%A1%D0%BA%D1%80%D0%B8%D0%BF%D1%82%D1%8B_%D1%81%D0%BE%D0%B4%D0%B5%D1%80%D0%B6%D0%B8%D0%BC%D0%BE%D0%B3%D0%BE", "tags": ["\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435", "Content script"], "summary": "", "localization_tags": [], "locale": "ru", "last_edit": "2016-09-21T04:47:30", "review_tags": []}, {"uuid": "920d9b0b-aadf-47a5-83b6-e2182a9e815c", "title": "Content Scripts\uff08\u5185\u5bb9\u811a\u672c\uff09", "url": "/zh-CN/docs/Mozilla/Add-ons/SDK/Guides/Content_Scripts", "tags": [], "summary": "\u5f88\u591a add-ons \u9700\u8981\u8bbf\u95ee\u548c\u4fee\u6539 web \u9875\u9762\u7684\u5185\u5bb9\u3002\u4f46\u662f add-on \u7684\u4e3b\u4ee3\u7801\u4e0d\u80fd\u76f4\u63a5\u8bbf\u95ee web \u5185\u5bb9\u3002\u66ff\u4ee3\u65b9\u6848\u662f, SDK add-ons \u9700\u8981\u4f7f\u7528\u4e00\u4e9b\u5206\u6563\u7684\u811a\u672c\u4ee3\u7406\u8bbf\u95ee web \u5185\u5bb9\uff0c\u8fd9\u4e9b\u811a\u672c\u88ab\u79f0\u4f5c\u5185\u5bb9\u811a\u672c\uff08content scripts\uff09\u3002\u672c\u9875\u9762\u63cf\u8ff0\u5982\u4f55\u5f00\u53d1\u548c\u90e8\u7f72\u5185\u5bb9\u811a\u672c\u3002 ", "localization_tags": [], "locale": "zh-CN", "last_edit": "2016-02-11T03:02:00", "review_tags": []}], "modified": "2016-06-21T00:52:21", "label": "Content Scripts", "localization_tags": [], "locale": "en-US", "id": 86059, "last_edit": "2016-06-15T21:21:40", "summary": "Many add-ons need to access and modify the content of web pages. But the main add-on code doesn't get direct access to web content. Instead, SDK add-ons need to factor the code that gets access to web content into separate scripts that are called content scripts. This page describes how to develop and implement content scripts. ", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Loading_content_scripts", "title": "Loading content scripts"}, {"id": "Controlling_when_to_attach_the_script", "title": "Controlling when to attach the script"}, {"id": "Passing_configuration_options", "title": "Passing configuration options"}, {"id": "Accessing_the_DOM", "title": "Accessing the DOM"}, {"id": "Interacting_with_page_scripts", "title": "Interacting with page scripts"}, {"id": "Event_listeners", "title": "Event listeners"}, {"id": "Communicating_with_the_add-on", "title": "Communicating with the add-on"}, {"id": "Accessing_port_in_the_content_script", "title": "Accessing "}, {"id": "Accessing_port_in_the_add-on_script", "title": "Accessing "}, {"id": "From_page-worker", "title": "From\u00a0"}, {"id": "From_page-mod", "title": "From "}, {"id": "From_Tab.attach()", "title": "From "}, {"id": "The_port_API", "title": "The port API"}, {"id": "The_postMessage_API", "title": "The postMessage API"}, {"id": "Content_script_to_content_script", "title": "Content script to content script"}, {"id": "Cross-domain_content_scripts", "title": "Cross-domain content scripts"}], "slug": "Mozilla/Add-ons/SDK/Guides/Content_Scripts", "review_tags": []}