Instance Method

removeContentScript

Removes the specified content script.

Declaration

void removeContentScript(in DOMString url);

Parameters

url

The URL of the script being removed.

Discussion

Content scripts specified in the Info.plist are removed only for the current browser session.

See Also

Adding and Removing Scripts and Style Sheets

addContentScript

Adds a content script from a string.

addContentScriptFromURL

Adds a content script from a URL.

addContentStyleSheet

Adds a content style sheet from a string.

addContentStyleSheetFromURL

Adds a content style sheet from a URL.

removeContentScripts

Removes all content scripts added by this extension.

removeContentStyleSheet

Removes the specified content style sheet.

removeContentStyleSheets

Removes all content style sheets added by this extension.