Answer the question
In order to leave comments, you need to log in
How to block loading of extra scripts?
Good afternoon dear community.
I am using Chrome browser.
UPD +Mozilla/Safari
I'm looking for the possibility of blocking individual scripts on certain sites, and it's just some, not all. I draw your attention, it is necessary to block certain scripts (for example, Yandex.maps) only in my browser. I'm not the owner of the site, just a user, but I don't want him to load Yandex.maps every time, since I don't use them, and the traffic / loading time goes up.
It’s just, for example, that the site has a lot of sections written in scripts, there are pop-up windows, and so on, they are needed, and they load quickly, but when the call to Yandex.maps and this ... JivoSite panel starts, the page hangs for about 1500ms. What does it take =(
All the extensions that I found on the net completely block all JavaScript on the site, but I would like to specify only a separate module. AdBlock can't handle this =(, or I can't configure it.
UPD
The problem is solved in two ways
. 1st
on OS-X, install the LittleSnitch program (or similar), set a rule for blocking a specific address. Personally, I did it the first time simply, I asked
LitleSnitch showed me absolutely all network connections, reloaded
the page on which it wanted to
block content a couple of times, approved all requests at a time, and found the one responsible for unwanted content, sent it to an eternal ban.
filter indicated the address of the following form http://your_site/*- where * is the permission to block everything behind the site, including the domain itself. For example http://your_site/main.
Both methods work great.
Answer the question
In order to leave comments, you need to log in
Scripts from third-party sites (though sites too) can be blocked with the good old hosts file
(Os X)
+++++++++++++++++++++++++++++++++
Solution - install Little Snitch, or an equivalent, and disable network activity for the script.
+++++++++++++++++++++++++++++++++++
Cons - on other sites where Jivosite is needed, you need to disable blocking
. Details below.
I have the Little Snitch app on my computer. I forbade him to automatically create all the rules, and every time someone breaks into the network, he notifies me about it.
At first, it was terribly infuriating, since the notification occurred with any activity. After a couple of days, I began to find dependencies, and understand some of the requests, what it issues, and where they come from.
As a result, when opening the site, I gave the go-ahead to everything except the JivoSite script.
We can assume that he created a permanent rule, never to let this site.
The downside is that now, as I understand it, it always blocks traffic to this script, and it has its benefits on other sites, and it is necessary that the blocking occurs only on a specific site.
I will check further. As soon as I find a 100% working solution, I will definitely unsubscribe.
Thanks again to everyone who posted their ideas here.
UPD
Be careful when creating rules in Little Snitch, the program is powerful and requires understanding. Therefore, I suffered for a couple of days because of the unstable operation of the site, through my own fault, creating a couple of rules that prevent the normal operation of the resource.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question