Home  >  Article  >  Web Front-end  >  chrome advanced settings javascript

chrome advanced settings javascript

WBOY
WBOYOriginal
2023-05-05 18:30:011211browse

With the rapid development of the Internet, browsers have become an indispensable part of our daily lives, and Chrome is one of the most popular browsers. Chrome has excellent performance, excellent compatibility and rich extensions, allowing users to complete many tasks on the browser. However, Chrome’s advanced settings are rarely known. Now let’s discuss Chrome’s advanced settings—JavaScript.

JavaScript is a very powerful scripting language that can achieve dynamic interactive effects on web content. It is often used to write various web page functions, such as web applications, animation effects, web page verification, etc. In the Chrome browser, we can control the behavior of JavaScript through advanced settings, which can not only speed up the loading speed of web pages, reduce resource usage, but also improve the security of web pages.

There are two ways to set JavaScript in Chrome's advanced settings. One is to adjust it through setting options, and the other is to implement it through an extension. Below we will introduce the specific implementation of these two methods respectively.

1. Adjust JavaScript by setting options

First open the Chrome browser, enter "chrome://settings/content" in the address bar, and find "JavaScript" in the pop-up page A column where you can set the behavior of JavaScript.

  1. Allow all websites to run JavaScript

By default, Chrome will allow all websites to run JavaScript code. If you require full JavaScript support, you can leave this option turned on.

  1. Block all websites from running JavaScript

If you think some websites are not safe enough, or do not want ads to track your browsing behavior, you can choose this option to turn off JavaScript. Of course, this will result in some website functionality being disabled.

  1. Allow only specific websites to run JavaScript

If you only trust some websites, such as bank websites or online shopping websites, and want other websites not to be able to run JavaScript, you can choose This item. Just enter the URL of the website in the list.

  1. Turn on reminders for JavaScript pop-ups

In this item, you can choose whether to turn on reminders for JavaScript pop-ups. Once enabled, you can choose whether to allow pop-ups when a website requests pop-ups.

2. Control JavaScript through extensions

In addition to using the default settings, we can also control the behavior of JavaScript through extensions. These extensions can help you improve the security of your browser and reduce the resource usage of JavaScript on your computer.

The following are several classic Chrome extensions:

  1. NoScript

NoScript can block scripts for all URLs. By default, NoScript blocks The execution of JavaScript code on all websites will only be lifted with user authorization. This is a way to keep yourself safe, but it also requires more time to configure the whitelist.

  1. ScriptSafe

ScriptSafe is a tool that can block scripts on all websites. Using ScriptSafe, you can block instructions, disable cookies and HTML5 local storage, etc. without damaging website functionality.

  1. uBlock Origin

uBlock Origin is an ad blocker that can also block the JavaScript code of certain websites. uBlock Origin blocks all scripts including malicious scripts, cross-site scripting injections and malvertising. Therefore, uBlock Origin also provides a way to basically protect JavaScript.

In short, when using the Chrome browser, we can control the behavior of JavaScript by setting options and using extensions to achieve a better browser experience and better security. We can set it up according to our own needs to make Chrome more suitable for our needs.

The above is the detailed content of chrome advanced settings javascript. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn