Block only selected JS

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:
SHORTCUTS

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Topic review
   

Expand view Topic review: Block only selected JS

Re: Block only selected JS

Post by NoScriptUser180713 » Fri Jul 13, 2018 6:48 pm

I think, I had old settings. When I opened NoScript Options and reset "Preset customization (for all the sites sharing a preset)", the "Default" level became the next:
Code: Select all
Allow Frame and Fetch

so now when I open default site like lenta.ru, I have no video autoplay!

Re: Block only selected JS

Post by NoScriptUser180713 » Fri Jul 13, 2018 6:11 pm

skriptimaahinen wrote:If I allow only
Code: Select all
lenta.ru          script
eagleplatform.com   script fetch

I do see the player, but get an error and no video.

Can you show please a screenshot with setting for this page. I cannot stop this video playing.

Re: Block only selected JS

Post by skriptimaahinen » Fri Jul 13, 2018 2:41 pm

If I allow only
Code: Select all
lenta.ru          script
eagleplatform.com   script fetch

I do see the player, but get an error and no video.

therube wrote:Just what is Fetch?

Fetch is for XHR requests. Used to "fetch" content (any data: text, html, scripts, media, streams, etc.) from a server. When you allow "fetch" for a domain, you are not allowing that domain to fetch stuff from elsewhere, but allowing other domains to fetch from there.

therube wrote:And why does Media not play in to the playing of "media" content here?

That is indeed good question. Not seeing that happening here though.

therube wrote:Does NoScript 10 actually have a "real" media placeholder?

Yes, NS does have media placeholder. For video-elements and MediaSource streams. The latest RCs have some fixes in that regard.

therube wrote:Or does that only apply if it is a "Media" block rather then a Fetch block?

No, the placeholders are not for fetch.

Re: Block only selected JS

Post by therube » Fri Jul 13, 2018 12:14 pm

If no eagle* are allowed, no video.

Dealing only with eaglepatform.com (because that is what I see first, before any other eagle*), it is not Media that allows or disallows the media playback, but rather Fetch (whatever Fetch is, does?). In order for Fetch to have any bearing, JavaScript also has to be allowed. So with both JavaScript & Fetch you get the media clip. With only JavaScript, you get a "placeholder" (but nothing like NoScript 5's placeholder that actually affords you the ability to play the video clip). With JavaScript & Fetch, you get video playback.

No other eagle* are needed for video playback.


Just what is Fetch?
And why does Media not play in to the playing of "media" content here?

Does NoScript 10 actually have a "real" media placeholder?
Or does that only apply if it is a "Media" block rather then a Fetch block?

Re: Block only selected JS

Post by skriptimaahinen » Fri Jul 13, 2018 11:06 am

Do not allow "media" on eaglecdn.com (or just remove all rights from any domain starting with "eagle"). Does that work for you?

Block only selected JS

Post by NoScriptUser180713 » Fri Jul 13, 2018 8:43 am

There is the site
If you scroll down the page the script will PLAY video on it with the sound. I can block this video with some extension like ABP, but if I reload the page and scroll it down, there is no video, but the sound still persists.
With the help of NoScript I can block ALL scripts on this page, but I need to block only PLAYER script (eagleplayer-container eagleplayer-loader).
Is there a way to do it?

Top