JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.

learn more… | top users | synonyms

1
vote
2answers
816 views

How can I automatically lock the screen when idle in CentOS?

How can I automatically lock the screen when idle in CentOS? I would like it so that a user has to re-enter their password once the machine has been idle for a period of time. If there is no option ...
0
votes
0answers
412 views

How to implement a bookmarklet for firefox 13 calling org-protocol and giving over a url/title?

Since javascript in bookmarklets of firefox 13 is no longer working, is there another method to implement a button that calls org-protocol and gives over the url and the title of the actual webpage.
1
vote
0answers
352 views

Adobe Acrobat: Advanced drop down / list

A client of mine needs a PDF made which has a list of store locations, there are a lot of store locations however. Each store is split into several parts, Store code: BB01 Store Name: Bob's ...
0
votes
1answer
192 views

Does javascript have access to my bookmarks and history?

I'm using RefControl addon for firefox, to avoid sending the referer in the headers. But now I'm wondering if the previous page or even my full history can be viewed by websites with javascript. And ...
8
votes
3answers
3k views

How to hide Browser Plugin Details in firefox for more privacy?

I'm trying to trick the results in this page to have more privacy/anonymity: https://panopticlick.eff.org/index.php?action=log&js=yes So far the best I could do is change the user agent, with the ...
3
votes
0answers
541 views

Autocompletion in Firebug expanded console

This one's bugging me since ever. Is it possible to enable autocomplete in Firebug console when it's expanded? In "condensed" mode (which is default) it works like a charm. I noticed that some ...
0
votes
1answer
552 views

Google chrome crashes in Windows 7 Enterprise Edition 64 bit

When I open an Image gallery application in Google chrome 19 browser it crashes suddenly. It happens only when I view the actual resolution image. There is no problem in the case of thumbnail image. I ...
3
votes
2answers
2k views

Store console output to file in Google Chrome

I would like to store the console output from my javascript in a file. Well, I would prefer to see the output in a file too see with /usr/bin/tail or other linux comand. Does anybody know if its ...
0
votes
2answers
2k views

does Gmail or any other popular webmail service scrub javascript from html emails? if not, any reason why?

I have seen claims that some email services mark emails with javascript as spam. But I have not seen mentioned that any sensible service would just optionally scrub any embedded javascript entirely ...
4
votes
1answer
1k views

Convert [object XrayWrapper [object HTMLSpanElement]] to html tag

In a userscript i am getting [object XrayWrapper [object HTMLSpanElement]] instead of html span tag. How can i get the html tag like <span>--</span> from this object?
3
votes
1answer
199 views

Getting rid of random syntax highlighting

I'm having a problem with Eclipse. It randomly highlights code in grey, usually as I type something. It doesn't always appear when I type, and goes away at random times too. It's really annoying. I ...
2
votes
2answers
392 views

How do I prevent automatic browser page refreshment done by Javascript?

There are some news websites which automatically and periodically refresh their page just in order to show the user more advertisement. If you are watching a video, all the buffered stream is gone ...
1
vote
0answers
89 views

Physics with Jacascript [closed]

As an exercise I am trying to replicate physics such as that seen in angry birds or contre jour. In essence, the tensile and fluid snap motions present when you pull a slingshot or stretch an elastic ...
22
votes
2answers
11k views

What is JavaScript Obfuscation and why is it a threat?

AVG was recently telling me that a webpage was blocked because of JavaScript Obfuscation. Why was the webpage blocked and what exactly does that mean?
4
votes
1answer
6k views

How to prevent a dialog box from opening in Google Chrome?

I have to visit a website in a regular basis that reminds me it was originally designed for Internet Explorer 8 and Mozilla Firefox 3.5.12 to 3.6.10. It displays a dialog box with that warning ...
0
votes
3answers
284 views

how do I block downloading data from a web domain, including by javascript code?

I am unhappy with google's javascript loading various BS from *.gstatic.com domain. I tried telling my firewall to block *.gstatic.com but apparently this only blocked loading webpages into the ...
1
vote
3answers
2k views

Code in Powerpoint presentation [closed]

I am putting together a powerpoint presentation which will contain some JavaScript samples. Just wondering what tips anyone has to make this easy to read? I am specifically looking for tips on fonts, ...
4
votes
2answers
3k views

Is there a browser extension that bypasses restrictions of pasting passwords?

As one example out of many, if you go to https://appleid.apple.com and click to manage your account, you can't paste your password in the password field. There is some javascript that prevents that. ...
1
vote
1answer
222 views

Stylebot extension: adding access keys for jquery?

Is it possible to use a program like Stylebot to have a custom CSS rule which activates a region when a number is pressed? I want 1 to click region 1, 2 to "right-click" region 2, and 3 to click ...
1
vote
1answer
1k views

Can I prevent Internet Explorer 8 from running scripts until the page is loaded?

When trying to veiw a number of different websites in IE8, I get the following error message: HTML Parsing Error: Unable to modify the parent container element before the child ...
15
votes
2answers
892 views

How do I prevent pages I visit from overriding selected Firefox shortcut keys?

In Firefox, how can I prevent pages from overriding Firefox built-in keyboard shortcuts through Javascript on a per-key basis? Preferably on a per-site basis, too? The most frustrating override is the ...
3
votes
2answers
3k views

Is this code supposed to be injected into every single page I browse on Chrome?

A week ago I noticed the following CSS/Javascript being injected into all pages I browse. Supposedly its from Avast, but I don't have a plugin from Avast. There is no information available anywhere ...
0
votes
2answers
87 views

Is it safe to use an untrusted bookmarklet on a web page with sensitive data?

Is it safe to use an untrusted bookmarklet on a web page containing sensitive data, for example internet banking page? In particular, can a bookmarklet send the data anywhere or execute some actions ...
0
votes
1answer
190 views

Random scripts stop working on all websites in Windows XP

I have been searching with finding any solution. Random scripts stopped working on websites. For example, on my own website the jQuery scripts aren't working, and when I click on them in the source ...
0
votes
1answer
227 views

Open browser type with javascript window.open() [closed]

Is it possible to open a specific browser type i.e. Google chrome, Firefox, Chromium using the window.open() method? For instance, I have Google chrome, Firefox and chromium installed on my system and ...
5
votes
3answers
1k views

How can I stop JavaScript from modifying the clipboard?

More and more I find that when I copy text from a news site, the site adds in its own advertising/footnote link to my clipboard, so that when I paste, I get "[Text I copied] FOR MORE, GO READ AT ...
1
vote
0answers
353 views

Adobe Edge alternatives

Are there similar software or alternative to Adobe Edge? I'm looking for a software where you can animate your html elements visually or using a GUI and then it will export in HTML and using ...
-2
votes
1answer
161 views

User Authentication [closed]

Is there any free or commercial service that would allow me to implement user authentication (user registration and management) for my static website using just javascript embed code?
0
votes
0answers
181 views

How can I improve or wrap my sed-script?

I instrumented a mvn build to emit profiling data, which I want to analyse later on. Therefore, I made the sed script below, to generate json-data from the profilers output. I call the script with ...
2
votes
3answers
4k views

How to get a simple Javascript console and output [duplicate]

Possible Duplicate: Is it possible to run JavaScript in Textmate? I'm learning javascript at Codecademy They have a website with a js console and an editor. But I can't find anything that ...
2
votes
2answers
1k views

How do I block javascript for all subdomains of example.com?

Hi all I have set my browser to disable javascript for http://en.wikipedia.org. I was wondering How do I block javascript for all sub-domains of the host wikipedia.org ? (I would like to block ...
1
vote
1answer
590 views

Command line query to linkdecrypter

I would like to create an script that I can run from my bash command line to make a query to the service given in the webpage http://linkdecrypter.com/ For instance I would like to run something like ...
2
votes
1answer
283 views

Customizing urlbar formatting in Firefox

Firefox 6.0 introduced URL formatting in the address bar, i.e. the domain.tld is black, while protocols, subdomains, and paths are grey. The related about:config entry to enable/disable this feature ...
0
votes
2answers
2k views

Shortcut for disabling javascript in firefox 8

I have found this site with firefox shortcuts. There is mentioned shortcut Ctrl+shift+F9 but it doesn't work for me. Can anybody help? (I need shortcut for quick switching to mode without javascript ...
1
vote
1answer
258 views

How can I config sublime text excute javascript with Mozilla Rhino

I want to excute javascript file without a browser. I found Mozila Rhino, but I wonder that how can I config sublime text or another text editor run my .js file directly (i.e without run command ...
1
vote
1answer
128 views

Stopping Flash/Javascript Loaded Images/Videos in Firefox

I would like to stop flash and javascript loaded images from automatically loading in FF. How can I accomplish this with the use of add-ons? Please note disabling javascript by default is not an ...
1
vote
2answers
126 views

Use a Bookmarklet Javascript in all opened windows/tabs?

Is it possible ? I'm using Google Chrome if someone can find an extension .. I've already looked for it , no results!
0
votes
2answers
708 views

Supressing browser generated alert boxes using Javascript

I want to stop an alert box being popped up by the browser using Javascript, as I find it bothersome. Is there any way to do this? Perhaps an addon, or script?
0
votes
0answers
319 views

Malzilla Tutorial #4 - how to get it working

I am trying to understand the basic work flow of using Malzilla , and therefore doing the tutorials. But already in the first one, where you actually get to do something I am lost as it doesn't work ...
8
votes
5answers
4k views

How to make Firefox always stop a script when it's not responding

On some pages I get the "Script not responding" error with an option to stop it and a checkbox to never ask again. Later I get the same question again, with that pointless checkbox. How do I make ...
5
votes
2answers
2k views

JavaScript executed through address bar is not working in Firefox 7, 8

JavaScript executed through address bar is not working in Firefox 7, 8. For example, the code below works in Chrome, when I paste it into the address bar and press Enter: javascript:alert("hello ...
3
votes
4answers
2k views

Disable ability of web pages to turn off my context menu in IE

I want to disable the ability of a web site to to turn off my context menu in IE. I do not want to turn off javascript entirely, I just want to prevent javascript code from intercepting the right ...
-2
votes
1answer
804 views

How can I view videos on CNN? [closed]

I get "The video timed out attempting to play. Please ensure that you do not have any Flash or JavaScript blocking plugins active. " when I try to view CNN news with Firefox on my computer? How to ...
0
votes
1answer
174 views

Firefox generating error?

I run Firebug on my computer since I develop websites. And I have been noticing this error consistently with every page I go to and I am lost as to what it is and believe it might be Firefox causing ...
2
votes
2answers
2k views

Firefox: Disable window.location on website

I'm trying to prevent a certain site from being able to use javascript to redirect the browser to another page. The script in question is an inline script so Greasemonkey and adBlock can't do ...
2
votes
1answer
2k views

Is it possible to run JavaScript in Textmate?

If I try to run it now I get a XCode error. Do I need to install a JavaScript interpreter on my computer?
0
votes
1answer
253 views

IE9 - Javascript suddenly went crazy

This morning, IE9 suddenly started acting flakey, specifically on Javascript-heavy sites. In an OWA site I use regularly, I can't expand or collapse groups, and the preview pane never updates. On a ...
0
votes
1answer
973 views

Is it possible to enable JavaScript injection in Chrome 15?

With Chrome 15 one is now able to sync search engines (finally). I had a few that executed JavaScript, but they no longer work in the new version because I am not able to execute scripts from the ...
0
votes
1answer
215 views

How to randomly click/check all radio/check boxes and select from drop-down menus in a webpage

Is there an easy way to randomly click/check all radio/check boxes and select random items in all drop-down menus in a webpage? I am testing my web site and there are a bunch of these. It is a pain to ...
5
votes
1answer
2k views

How do I permanently disable javascript strict warnings in Firefox?

When I open Firefox (8 Beta and 7) and load a page with firebug open, I get a load of javascript strict warnings, so I disable javascript strict warnings so my page loads will speed up, which works ...