The best way to remove a JavaScript code block from a page is to use a pre-compiled JavaScript library that includes a plugin that automatically removes the JavaScript code from a web page.
If you don’t have a plugin, you can manually remove the JavaScript element from your HTML page by using the JavaScript API.
To find out how to use the JavaScript APIs, follow these steps: Open the JavaScript Library page in the JavaScript console.
Click the JavaScript tab.
Click on “Scripting API.”
Type the JavaScript name for the JavaScript library.
Click “Remove.”
The JavaScript API will remove the code from your web page automatically.
To delete JavaScript code blocks from a website, you need to manually include the JavaScript module in your page.
Type the name of the JavaScript file you want to remove into the search box.
Click Add and then click the Add New button.
The JavaScript module will be added to the HTML page.
Click Save Changes and then save your changes.
The page will reload and your changes will be saved.