Page 1 of 1

Add option to Hide iframe and frame blocked frame

Posted: Sun Aug 07, 2016 3:51 pm
by SilentKiller
Hi;
I want a new option added to no script if it is possible.
When blocking iframe or frame from option its hide the frame and iframe but the creates a rectangle box with cross icon. i want to hide this rectangle box permanently with control able option.
And is it possible to block dialogue using noscript.
I am member of a site build in php it shows a dialogue after every few seconds i tried to block it by disabling meta-refresh but no change.
The appearance of dialogue is very annoying.

Re: Add option to Hide iframe and frame blocked frame

Posted: Sun Aug 07, 2016 6:03 pm
by barbaz
SilentKiller wrote:When blocking iframe or frame from option its hide the frame and iframe but the creates a rectangle box with cross icon. i want to hide this rectangle box permanently with control able option.
about:config > set noscript.showPlaceholder to false
SilentKiller wrote:I am member of a site build in php it shows a dialogue after every few seconds i tried to block it by disabling meta-refresh but no change.
This is not normal behavior for NoScript. Can you please post a screenshot of this dialog?

Re: Add option to Hide iframe and frame blocked frame

Posted: Tue Aug 09, 2016 6:44 pm
by SilentKiller
Hi
Thanks first issue is resolved My second issue dialogue problem
Here is the image
Image

Re: Add option to Hide iframe and frame blocked frame

Posted: Tue Aug 09, 2016 7:08 pm
by barbaz
Well... that is generated by the page, not NS:
Google translate to English the notification text wrote:He has received new notifications, which has outstanding read. Do you wish to read now?
You can block that in NoScript, but it would be better to disable that in the user settings if possible. It's definitely possible in some boards that throw alike dialogs.
If you really can't disable it in your user settings on that board, you can try to set a surrogate script:

about:config
right-click > new > String
name:

Code: Select all

noscript.surrogate.kill_confirm_hack.replacement
value:

Code: Select all

Object.defineProperty(window, 'confirm', {enumerable:true, value:function(){return false}});
right-click > new > String
name:

Code: Select all

noscript.surrogate.kill_confirm_hack.sources
value is @ followed by the site's domain, e.g.

Code: Select all

@.example.net

Re: Add option to Hide iframe and frame blocked frame

Posted: Tue Aug 16, 2016 12:54 pm
by SilentKiller
Hi
Thanks the confirm dialogue issue is resolved now i have new issue.
i am member of website recently they have added some kind of popup or pop under with redirection as soon as i click anywhere in the page it redirects the page to some other site.
I tried popup blocker and ad block but still facing the problem.
I also blocked meta redirect and refresh but still as i click it popup and redirects.

Re: Add option to Hide iframe and frame blocked frame

Posted: Tue Aug 16, 2016 2:54 pm
by barbaz
If this surrogate script doesn't work, we probably can't help you there. Note that this might break site functionality that you actually want.

Code: Select all

for(let t of ['focus','mouseover','mousedown','click']){window.addEventListener(t,function(e){e.stopPropagation();e.stopImmediatePropagation();},true)}
sources value is as before.

Re: Add option to Hide iframe and frame blocked frame

Posted: Thu Nov 24, 2016 8:46 pm
by SilentKiller
I am looking for an option if it is possible
I want to block frame and iframe for some sites not all websites is it possible?
e.g. I want to block frames and iframes for domain A but for domain B i want to view the frames and ifrmaes with out using multiples firefox instances and profiles

Re: Add option to Hide iframe and frame blocked frame

Posted: Thu Nov 24, 2016 9:43 pm
by barbaz
about:config > noscript.allowedMimeRegExp
use FRAME as mime type