Noscript duplicates links

Ask for help about NoScript, no registration needed to post
Stockbrot
Posts: 4
Joined: Mon Mar 21, 2016 12:38 pm

Noscript duplicates links

Post by Stockbrot »

Hey there!

Here are some information to reproduce the error:

Browser = Firefox 45.0 Linux / Ubuntu
Noscript 2.9.0.9
Code: https://tobkno.lima-city.de/temp/

Noscript takes the link from inside the nav-tag and duplicates it before the </body> tag.
The link then has the style="visibility: visible; display: block;" - thing in it.

With disabled Noscript or temporarily allowed scripts the link after the red area (header) isnt there (so it's as it should be).
This is no JavaScript error cause when I disable JavaScript in about:config the error doesnt occur.

There is another page that got this error: https://tobkno.lima-city.de/firefoxsettings.html

Screenshots:
http://thewebdesignforum.co.uk/uploads/ ... 578863.png
http://thewebdesignforum.co.uk/uploads/ ... 579672.png

Thanks for helping!

Stockbrot
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

As a test, try changing this setting, see if it makes any difference:
NoScript Options > Advanced > Untrusted, un-check "Attempt to fix JavaScript links"
*Always* check the changelogs BEFORE updating that important software!
-
Stockbrot
Posts: 4
Joined: Mon Mar 21, 2016 12:38 pm

Re: Noscript duplicates links

Post by Stockbrot »

barbaz wrote:As a test, try changing this setting, see if it makes any difference:
NoScript Options > Advanced > Untrusted, un-check "Attempt to fix JavaScript links"
I dont use any JavaScript, those links are not JavaScript-links. The setting didnt work for me. Could you reproduce the error?
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

Yes, I can reproduce it, but I'm not sure what other NS feature would be messing with a page like that... Image

I'll play around with it and get back to you.
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

Now this is interesting... the problem is not there viewing the page as a local file, but if I put it up on my local server then the problem does occur. So it's not related to anything the server is doing.

Minimal testcase:

Code: Select all

<!DOCTYPE html>
<div><a href="#" style="display:none;">Foo</a>
testing</div>
*Always* check the changelogs BEFORE updating that important software!
-
Stockbrot
Posts: 4
Joined: Mon Mar 21, 2016 12:38 pm

Re: Noscript duplicates links

Post by Stockbrot »

barbaz wrote: Minimal testcase:

Code: Select all

<!DOCTYPE html>
<div><a href="#" style="display:none;">Foo</a>
testing</div>
Thanks for the minimal testcase! I hope some more people are looking over this :)
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

This is definitely a feature and not a bug. I'd be searching NoScript's source code if I had some idea what to look for... do you have any suggestions?
*Always* check the changelogs BEFORE updating that important software!
-
Stockbrot
Posts: 4
Joined: Mon Mar 21, 2016 12:38 pm

Re: Noscript duplicates links

Post by Stockbrot »

barbaz wrote:This is definitely a feature and not a bug. I'd be searching NoScript's source code if I had some idea what to look for... do you have any suggestions?
I'm sry that I have no idea where to search for the feature if it is one. :/
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

The problem is, there are so many different ways to do something like that, I can't think what string would be required... guess I'll start with those CSS properties and use some regex and hope something turns up :|
*Always* check the changelogs BEFORE updating that important software!
-
barbaz
Senior Member
Posts: 11117
Joined: Sat Aug 03, 2013 5:45 pm

Re: Noscript duplicates links

Post by barbaz »

Got it! 8-)

about:config > noscript.jsredirectIgnore
*Always* check the changelogs BEFORE updating that important software!
-
Post Reply