removeCSS method

  1. @Deprecated(r'Replaced by scripting.removeCSS in Manifest V3.')
Future<void> removeCSS(
  1. int? tabId,
  2. DeleteInjectionDetails details
)

Removes from a page CSS that was previously injected by a call to scripting.insertCSS. tabId The ID of the tab from which to remove the CSS; defaults to the active tab of the current window. details Details of the CSS text to remove. Either the code or the file property must be set, but both may not be set at the same time. returns Resolves when all the CSS has been removed.

Implementation

@Deprecated(r'Replaced by scripting.removeCSS in Manifest V3.')
Future<void> removeCSS(
  int? tabId,
  DeleteInjectionDetails details,
) async {
  await $js.chrome.tabs
      .removeCSS(
        tabId,
        details.toJS,
      )
      .toDart;
}