Is it possible to enable javascript for a specific URL? [closed] - javascript

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
There are many users who have JavaScript disabled and deny to enable it even for some business applications. Is there any way to allow a user to enable a JavaScript for a specific URL in order to use an application and then to disable again for the rest of URLs?
Thank you very much!

In Windows, you can configure site zones. You could disable Javascript for all URL's in the main config, then enable it only for sites in the safe zone. You then add the white listed sites where you want JS to work to the safe zone. I'm afraid this only affects IE, though. Also, this kind of question is more suited to Super User.

Related

Can I enable javascript directly from my site? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I would like to know if it is possible with the help of a button for example, to allow the user to enable javascript or disable it (but only enable it interests me) directly from our site.
That is to say, I have a website that needs javascript for animations or whatever and I would like everyone to be able to access it.
So make available to people a button to enable javascript if it is disabled.
Do you know what I'm talking about?
Is this possible? Or am I dreaming?
And if so, do you have any leads?
Not possible, but the best you can do is add a <noscript> tag with a message specifically for people without JS enabled. A huge majority of people keep JS enabled and never change this preference though.
Example:
<noscript>
<h1>Please enable JavaScript in your browser for the best possible experience.</h1>
</noscript>

How do ads blocker extensions work? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I was wondering what is the idea behind ads blockers browser extensions?
I want to develop such an extension but first i want to understand how do they do their magic. So, how do they work?
These extensions use filter lists, filter lists are essentially an extensive set of rules that tell Adblockers which elements of a website to block. You can add any filter list you want. For example, block tracking or malware.
All filters are translated into regular expressions internally, even the ones that haven't been specified as such. For example, the filter ad*banner.gif| will be translated into the regular expression /ad.*banner.gif$/.
Follow the link given below to get a good idea of internal working of those extensions:
https://adblockplus.org/faq_internal

Why do browsers provide an option to disable Javascript? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
It is just a noob question: why do browsers have a "disable javascript" function?
I am just curious and hunger for learning. Thanks!
If you're asking why some browsers might have Javascript turned off, it is a user setting in a browser. The user has the ability to decide whether they want to enable Javascript or not.
Users may choose to disable Javascript for either security or privacy reasons. It seems less common these days because more and more sites are not fully functional without Javascript enabled.
In my opinion, one reason could be some highly technical users may want full control over how they want their browsers to behave. Javascript is one part of browser behavior which some users may wish to control. Thus - it is a question of choice. Sometimes - some Javascript could be too annoying for some choosy techie users and they may wish to turn it off.
Thus - in addition to security and privacy, it is a choice that browsers offer to end users. However it is true that nowadays most sites hardly function without JS. But still there could be those plain old vanilla HTML sites around that may do without any client side scripting.
Regards

Decision tree software/library for knowledge base [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a knowledge base system, but the users feedback that it is quite hard to search for the information. So I am thinking about the decision tree. If the user can find the info by clicking few options, that will be great.
I saw some websites have this feature. (e.g. I encountered an issue, I choose Windows7 -> login issue -> wrong password, then the system will provide the solution)
I want to implement such system, but unfortunately I didn't find any.
Any smart ideas? Thanks!
Interactive Decision Tree looks like a suitable solution for you
http://code.google.com/p/interactive-decision-tree/

Someone managed to write a line of code in my javascript file, how? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 12 years ago.
Improve this question
How can someone physically change a javascript file? It's completely locked down and i've no idea how someone would be able to do this through a web browser.
Rob
Phished / Hacked your ftp credentials..
Obtained root credentials by exploiting database vulnerabilities etc etc..
Do not focus on the actual altered file (that is the payload distributor, if the changes were malicious) but focus on how the gained access on the server..

Categories