Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

How can I implement a javascript whitelist without using add-ons?

  • 2 відповіді
  • 1 має цю проблему
  • 1 перегляд
  • Остання відповідь від barloteli

more options

From the link below

http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScript

We know that we can use Configurable Security Policies (CAPS) to implement a javascript whitelist. But after version 28, CAPS is removed from firefox. Therefore, we lost a built-in javascript whitelist feature.

Who knows some solutions or workarounds? ( Please note that DO NOT USE ANY ADD-ONS OR PLUGINS! )

From the link below http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScript We know that we can use Configurable Security Policies (CAPS) to implement a javascript whitelist. But after version 28, CAPS is removed from firefox. Therefore, we lost a built-in javascript whitelist feature. Who knows some solutions or workarounds? ( Please note that DO NOT USE ANY ADD-ONS OR PLUGINS! )

Усі відповіді (2)

more options

I'm not aware of any way to do that from within Firefox.

Why wouldn't you use the NoScript extension (older version compatible with Firefx 52)?

more options

In fact, we can use the old technique proxy auto-config (PAC) to implement most external javascript whitelist feature (Certainly, this method is not so elegant) . But for inline scripts, I haven't found a good solution.

By the way, the built-in javascript whitelist/blacklist is a standard feature for nearly all major web browsers such as Google Chrome, Opera, Konqueror and even Internet Explorer. Why is Firefox an exception?