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)
Allow custom javascripts
Allow custom javascripts
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow custom javascripts
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.
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)
Re: Allow custom javascripts
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)
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
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow custom javascripts
I did it for you:
https://secure.informaction.com/downloa ... script.xpi
https://secure.informaction.com/downloa ... script.xpi
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)
Re: Allow custom javascripts
I really appreciate this,really thanks.Giorgio Maone wrote:I did it for you:
https://secure.informaction.com/downloa ... script.xpi
btw there is one line in highlighter.js
Is it ok to write there
Code: Select all
item.appendChild(doc.createTextNode(decodeURI("here")));
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
- Giorgio Maone
- Site Admin
- Posts: 9524
- Joined: Wed Mar 18, 2009 11:22 pm
- Location: Palermo - Italy
- Contact:
Re: Allow custom javascripts
Yes, it is.VSUB wrote:Giorgio Maone wrote: btw there is one line in highlighter.js
Is it ok to write therewhatever I want because that enter symbol doesn't look very good.Code: Select all
item.appendChild(doc.createTextNode(decodeURI("here")));
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)
Re: Allow custom javascripts
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
Re: Allow custom javascripts
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