Add option to Hide iframe and frame blocked frame

Ask for help about NoScript, no registration needed to post
SilentKiller
Posts: 5
Joined: Sun Aug 07, 2016 3:12 pm

Add option to Hide iframe and frame blocked frame

Post 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.
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0
barbaz
Senior Member
Posts: 11067
Joined: Sat Aug 03, 2013 5:45 pm

Re: Add option to Hide iframe and frame blocked frame

Post 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?
*Always* check the changelogs BEFORE updating that important software!
-
SilentKiller
Posts: 5
Joined: Sun Aug 07, 2016 3:12 pm

Re: Add option to Hide iframe and frame blocked frame

Post by SilentKiller »

Hi
Thanks first issue is resolved My second issue dialogue problem
Here is the image
Image
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
barbaz
Senior Member
Posts: 11067
Joined: Sat Aug 03, 2013 5:45 pm

Re: Add option to Hide iframe and frame blocked frame

Post 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
*Always* check the changelogs BEFORE updating that important software!
-
SilentKiller
Posts: 5
Joined: Sun Aug 07, 2016 3:12 pm

Re: Add option to Hide iframe and frame blocked frame

Post 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.
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
barbaz
Senior Member
Posts: 11067
Joined: Sat Aug 03, 2013 5:45 pm

Re: Add option to Hide iframe and frame blocked frame

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
SilentKiller
Posts: 5
Joined: Sun Aug 07, 2016 3:12 pm

Re: Add option to Hide iframe and frame blocked frame

Post 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
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.106 Safari/537.36
barbaz
Senior Member
Posts: 11067
Joined: Sat Aug 03, 2013 5:45 pm

Re: Add option to Hide iframe and frame blocked frame

Post by barbaz »

about:config > noscript.allowedMimeRegExp
use FRAME as mime type
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply