Allow custom javascripts

Ask for help about NoScript, no registration needed to post
VSUB

Allow custom javascripts

Post by VSUB »

Is it possible to allow special JavaScript function without allowing the whole site.

Recently I downloaded one add-on that I really like but that add-on is not working properly unless I allow the script to the site.The add-on is Highlighter and the function to go to the marked text is not working because it requires JavaScript to be enabled(javascript:scrollTo)and also there is a function to warn if I try to leave a page with marked text(which is also not working because of the disabled JavaScript)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow custom javascripts

Post by Giorgio Maone »

No, it's not possible.
On the other hand, add-ons are privileged and can do everything they want (included the actions you mentioned) without using content-level JavaScript, so I consider this an Highlighter bug.
It's up to the Highlighter developers to implement these functionality properly in order to make it work with JavaScript disabled.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
VSUB

Re: Allow custom javascripts

Post by VSUB »

I doubt that he even remember creating such add-on(his last update was 3 years ago).
Can you give me some directions where to read to try fixing the add-on myself(other possibilities how that functions may work)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow custom javascripts

Post by Giorgio Maone »

Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
VSUB

Re: Allow custom javascripts

Post by VSUB »

Giorgio Maone wrote:I did it for you:
https://secure.informaction.com/downloa ... script.xpi
I really appreciate this,really thanks.
btw there is one line in highlighter.js
Is it ok to write there

Code: Select all

item.appendChild(doc.createTextNode(decodeURI("here")));
whatever I want because that enter symbol doesn't look very good.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
User avatar
Giorgio Maone
Site Admin
Posts: 9524
Joined: Wed Mar 18, 2009 11:22 pm
Location: Palermo - Italy
Contact:

Re: Allow custom javascripts

Post by Giorgio Maone »

VSUB wrote:
Giorgio Maone wrote: btw there is one line in highlighter.js
Is it ok to write there

Code: Select all

item.appendChild(doc.createTextNode(decodeURI("here")));
whatever I want because that enter symbol doesn't look very good.
Yes, it is.
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)
VSUB

Re: Allow custom javascripts

Post by VSUB »

Ok thanks,now that add-on works exactly how I wanted and it also works almost like one other add-on(for locking tabs)...it's adding more extras for locking tabs :)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
vsub

Re: Allow custom javascripts

Post by vsub »

Can you help me again,the add-on highlighter is not working on 3.6 :(
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7
Post Reply