removeUserScriptsByGroupName method

Future<void> removeUserScriptsByGroupName(
  1. {required String groupName}
)

Removes all the UserScripts with groupName as group name from the webpage’s content. User scripts already loaded into the webpage's content cannot be removed. This will have effect only on the next page load.

NOTE for iOS and MacOS: this method will throw an error if the PlatformWebViewCreationParams.windowId has been set. There isn't any way to add/remove user scripts specific to window WebViews. This is a limitation of the native WebKit APIs.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS

Implementation

Future<void> removeUserScriptsByGroupName({required String groupName}) =>
    platform.removeUserScriptsByGroupName(groupName: groupName);