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

learn more… | top users | synonyms

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 ...
5
votes
2answers
4k 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 ...
5
votes
2answers
220 views

Is it possible to mark code so as to add custom entries to BBEdit's “Functions” menu?

I remember back in my CodeWarrior days, it was possible to add entries to the code navigational menu using #pragma mark directives, which made it easy to organize your code file into sections visible ...
5
votes
2answers
2k views

As a user, how can one disable right click on flash for certain web site

This is not a question like I'm web a developer, I want to block user from downloading picture from a web site. Here is the issue, my three year old daughter loves to play on a web site abcmouse.com ...
5
votes
1answer
2k views

Disable Emacs' auto indentation for JavaScript mode completely

I have tried to disable the auto indentation in Emacs in JavaScript for three hours now and could not find a (good) solution. My Emacs version is 23.3.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3), at ...
5
votes
4answers
2k views

Is there an OS X app like jsfiddle?

I am wondering if there is an app that works like jsfiddle to work offline for prototyping on the move?
4
votes
8answers
675 views

Soft version of NoScript

I'm looking for a soft version of NoScript, by which I mean a Firefox extension that blocks most of the usual crap such as google analytics, without blocking unknown stuff by default. Basically I'm ...
4
votes
4answers
9k views

How to get Firefox Greasemonkey script to use a local cascading stylesheet?

What's the correct syntax to link to a CSS file in the same directory as a Greasemonkey JavaScript? I've tried the following but it doesn't work: var cssNode = document.createElement('link'); cssNode....
4
votes
12answers
22k views

IE8 Refuses to run Javascript from Local Hard Drive

I have a problem that just started at work recently and the network manager is certain he did not change anything with the group policy. Anyways, here is a detailed description of the problem. My ...
4
votes
2answers
7k views

How to close large Javascript Alert windows on Chrome/ OSX

I'm using Chrome 14 and OSX 10.5.8. If a website generates a Javascript alert window with a lot of content (like debug information) the bottom of the window disappears off the screen. This places ...
4
votes
2answers
5k views

free simple webmail that doesn't require javascript?

Could someone recommend free email service accessible from webmail that doesn't have annoying bloated interface requiring javascript? So far I like gmail because even with js off it still works great -...
4
votes
1answer
1k views

Why is /usr/share/gnome-shell/js missing?

I'm trying to debug a gnome-shell extension, but I don't seem the have the folder /usr/share/gnome-shell/js. I'm on fedora 20 with gnome 3.12. I couldn't find it when I had gnome 3.10 either. Were the ...
4
votes
1answer
974 views

Disable Javascript for certain page in Chrome

:D I have one question about Google Chrome. I know there is an option under Settings to disable javascript, even I can manage on which sites I don't want it. But my problem is here :) I'd like to ...
4
votes
1answer
2k 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?
4
votes
2answers
223 views

Where can I find a google search results re-linker for Google Chrome that works?

There used to be some grease monkey scripts that helped relink results directly from the Google search (see here and here for regular results, and here and here for image results.) I really enjoyed ...
4
votes
1answer
1k views

How can I stop “clipboard hijacking” globally? [duplicate]

this is getting to be a real bugbear of mine, and from what i understand it's becoming more common. a few of you might have heard of tynt, a site that offers clipboard-hijacking services. with their ...
4
votes
2answers
174 views

How do I suppress google tracking when blocking javascript is not enough?

For this case I'm referring specifically to the website: http://www.golem.de/ I'm connecting to this website using Firefox with javascript disabled: about:config > javascript.enabled > no This ...
4
votes
2answers
1k views

Firefox: Any way to allow javascript to disable or replace the context menu only to specific domains?

This is something that's commonly abused, so I almost always want it to be off, except when I'm using a handful of large webapps that use the feature properly, such as Google Docs. I know there's a ...
4
votes
3answers
5k views

Firefox: Is it possible to disable exit alerts?

Sometimes the website will show an alert box akin to "Are you sure you want to leave?" when you try to leave the site. Is it possible to disable this from happening, without using something like the ...
4
votes
1answer
194 views

How to prevent Fingerprinting via Font Enumeration

I don't mean using Noscript or just not installing fonts, I'm trying to find a way of outright denying Flash, Java, and JavaScript the ability to look at my fonts. I've checked the fonts folder and it ...
4
votes
1answer
550 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 ...
4
votes
3answers
563 views

Why are browsers so heavy? [closed]

Back in 1998 I had a computer with 233MHz Pentium MMX CPU and a GFX card with no 3D acceleration. It was able to run games like Quake II at a decent FPS rate. My current computer has tons more ...
4
votes
0answers
87 views

Redmine contex-menu and member deletion/modification failure

I'm using Redmine 0.9.3.stable (SQLite) on my Ubuntu 11.04. It is all ok except for the context-menu and inability of removing the members from some project. Concerning the first problem, when I do ...
3
votes
3answers
5k views

Is there a way to run Javascript without a browser, like a shell or batch script?

Is there a way one could run Javascript the way Python, Bash, Windows Batch or other scripting languages are run? File access and other library functions would be nice but are not required - I'm just ...
3
votes
7answers
2k views

Is there a way to run a website in full screen in Windows?

Is there a way to run a website in full screen in Windows? I'm running a Webpage which is only a form and it's running on a kiosk in a shopping mall. I want this page to display in full screen. no ...
3
votes
5answers
4k views

Blocking Google Analytics from loading with JavaScript

How can I block or remove the Google Analytics code so that it does not load when I visit a web page?
3
votes
3answers
30k views

Are Google Chrome's in-text ads from malware?

Google Chrome on Windows double-underlines words on every page. On mouse hover I get an ad overlay from infolinks or similar. Is this a legit part of Windows Chrome or is it due to some kind of ...
3
votes
1answer
1k views

Does firebug not (always) duplicate repeated identical console.logs?

I always thought that firebug would send to the console content whenever the JavaScript encountered console.log('send this'); Then, I was messing around with jQuery's hover() method (something like $(...
3
votes
2answers
537 views

How do I tell NoScript not to freak out when the Visual Studio help system calls up an MSDN web page in Firefox?

So, I'm merrily using Visual Studio 2010 Express and it's configured to get its help from the Web. I have some doubts on how some language feature works and I press F1 with the cursor on it. VS calls ...
3
votes
3answers
504 views

Advanced Web Browsing: hitting next with keyboard (single keystroke)

I have a website for class that is literally 1000's of pages long, with a next button at the bottom like this: Prev 1 2 3 4 Next With the following code, if that helps: <a href="javascript:...
3
votes
5answers
7k views

Stop never-ending popup alerts in FireFox

It is possible for javascript to get stuck in a loop of opening up alerts. For example: for(var i=0;;i++) alert('This will never stop'); Is there a way to gracefully stop this in firefox, ...
3
votes
2answers
2k views

List resources like css and javascript files of page in Firefox?

In Firefox, (on normal pages) there is "Page info" in the context menu. It lists images on ("embedded"?) the page along with their full URLs. But other "external" files are not listed. Can I view a ...
3
votes
6answers
24k views

How can I copy text from a web page where it been has disabled?

I use FF27 with noscript, but solutions for Chrome are also welcome. I use online chat for customer support when available, and I'd like to keep the chat transcript in case of a dispute with the ...
3
votes
1answer
656 views

Does selectively blocking Javascript in Chrome actually reduce bandwidth usage?

In Chrome, Javascript is allowed to run by default. However, there's a nice dialog (Settings → Show advanced settings... → Content settings...) for blocking Javascript from specific sites: ...
3
votes
3answers
2k views

Getting malware through JavaScript and an img tag

I was browsing a website which caused Avast to create a notification that it protected me from an infection. Over the next half hour, this notification popped up again a few times. The Avast message ...
3
votes
2answers
2k 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 ...
3
votes
3answers
3k 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 ...
3
votes
1answer
2k views

Middle clicking a link on chrome sometimes also switches the current tab to the new one

In chrome, most of the time, when i middle click on a link (text or image), it opens a new tab and the current tab does not change. This is the expected behaviour. However, some websites have links (...
3
votes
1answer
2k views

Using Chrome's Developer Tools - to find out where a javascript function is being called

The thing is, I have this big website with lots of JavaScript files and stuff. And I am trying to change the jQuery UI accordion plugin's settings so that it wouldn't do auto height of the wrapper ...
3
votes
2answers
159 views

How to prevent JavaScript on web site messing with browser

Is there any way to prevent specific JS scritps messing with browser (Firefox or Chrome)? For example some sites are blocking copy\paste functionality for input fields forcing user to type some text ...
3
votes
2answers
4k 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 ...
3
votes
1answer
5k views

Text based webbrowser that supports JavaScript?

If I lynx beforeitsnews.com then I can't see the page because it needs a JavaScript compatible webbrowser. Are there any text-based webbrowsers that supports JavaScript?:
3
votes
2answers
2k views

Firefox - Any way to prevent onload focus of form fields?

Is there any Firefox extension or built in configuration that will allow disabling onload focusing in text fields? I do not want to disable javascript. I'm just sick of certain sites auto-focusing in ...
3
votes
1answer
562 views

How can I get the latest N posts from blogger RSS feed?

How can I get the latest N posts from blogger RSS feed, using the URL in a browser, or some javascript? Which parameter do I have to use?
3
votes
2answers
3k views

How to get IE to open JavaScript as text

I am running IE 9. Up until last week sometime, if I would put the URL of a JavaScript file in the address bar, it would show the JavaScript as text in the browser window. Now when I do that, it wants ...
3
votes
2answers
6k 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 ...
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 ...
3
votes
2answers
6k views

How can I capture or print the whole scrolling area of this dynamic webpage?

I'm trying to save (as in: for printing / putting it in a PDF -- I'm not interested in the HTML, but in the rendering of the html to be able to print the table or at least view it offline) a table ...
3
votes
2answers
2k views

Is there some text mode browser that supports at least basic javascript?

I looked at links2 and elinks - neither one seems to even support a simple javascript redirect on a site. Any ideas? Is there some sort of text mode for some opensource browser e.g. Firefox that I ...
3
votes
3answers
841 views

How to stop flash and javascript on any browser page except the currently viewed one

I'm fed up with browsers eating up CPU cycles by running useless flash and javascript. This question is related to this one but it's slightly different. Is it possible to automatically switch all ...