Archive for JavaScript

Firefox issues (v.42+ ) – How to access JavaScript Advanced Settings again

Posted in Browser, Bug, How to with tags , , , , , , , on October 15, 2015 by Sirusdark

Firefox‘s new options menu is good looking, sure. But it’s now incomplete, as some options are unavailable. JavaScript’s advanced settings is one of those “gone” settings from the new interface. In case you’re wondering what the heck it’s all about, you might wanna install that Firefox SettingSanity extension I recommended some time ago.

Configuring da configs

Here’s how to switch back to the good ‘ol menu and access those beloved Advanced JavaScript Settings:

Simply set the browser.preferences.inContent to false in Firefox’s settings, about:config (only works in Firefox).

firefox_legacy_preferences-menu

Back in business

Once it’s turned to false, you’re good to go!

firefox_legacy_options

Enjoy!

Sirus

References
-https://addons.mozilla.org/en-US/firefox/addon/settingsanity/
-https://addons.mozilla.org/en-US/firefox/addon/settingsanity/reviews/707714/

Ubisoft’s web programmers love humor! function iesux()

Posted in Coding, Games, Internet with tags , , , , on April 24, 2014 by Sirusdark

Ubisoft LogoI was looking at some website’s script files as usual and I stumbled on something that made me smile. I was looking at Ubisoft’s Watch Dog website and saw this in one of their JavaScript script’s code:

function iesux()

//IE Sucks

In this extract, this first line is a function’s name and the second is a comment written by a programmer.

Meaning

IE is a very well known abbreviation for Microsoft’s famous Internet browser, Internet Explorer. As for the rest, you can guess yourself. :D

IMPORTANT NOTE

Please note that Internet Explorer isn’t bad, nor does it “sux”: this code is used to display a prompt for people using an obsolete version of IE, which is dangerous and doesn’t offer all the latest features of modern web browsers. For the regular Joe and Joanna users out there, IE is fine, but it doesn’t pack all the feature that power users & developers need.

Enjoy!

Sirus
sirusdark.ca

Reference
-http://static9.cdn.ubi.com/resource/en-CA/game/watchdogs/watchdogs/wd_loc.js

How to save and download JSFiddle code

Posted in Browser, Coding, Open source, Tweaking with tags , , , on April 10, 2014 by Sirusdark

JSFiddle Logo

JSFiddle is AWESOME to test any code or when you simply need to iterate quickly some code. But there’s no way to simply save everything all together at once. Here’s a hack to do just that!

Simply add “embedded/” orembedded/result/” at the end of your JSFiddle URL! You can then save the whole page as an MHT or HTML file + the external libraries (if any)!

Hack it, grab it

1. Add embedded/result/ at the end of the JSFiddle URL you wanna grab.

2. Show the frame or the frame’s source code: right-click anywhere in the page and view the frame in a new tab or the source  right-away (requires Firefox).

3. Finally, save the page in your preferred format (MHT, HTML, TXT, etc.) and voilà!

4. Don’t forget to save any external libraries that you may have called.

“embedded/” or “embedded/result/” ?

Here’s an example of a JSFiddle code I created: http://jsfiddle.net/R3C6p/

As you  can see, you can’t view it as a single HTML page. Now, check it out with the modified URL: http://jsfiddle.net/R3C6p/embedded/ and http://jsfiddle.net/R3C6p/embedded/result/. Notice that the embedded version allows you to switch each sections, while the result version only shows your code’s result. That’s the one you’ll need to open the frame to grab the source code (Ctrl+U).

That’s it!

FREE BONUS! Shattered Planet Logo

Available on iOS now!

I’ve personally playtested that game: it’s fun!

Enjoy!

Sirus
sirusdark.ca

Firefox v24 – JavaScript settings are gone?

Posted in Browser, Bug, How to with tags , , , , , , , on October 2, 2013 by Sirusdark

I recently noticed that the latest Firefox version was missing a very useful feature: the ability to control which behaviour of the browser JavaScript can and can’t change:

advanced_javascript_settings_ff

So here’s the Firefox extension that brings back the missing JavaScript options:

SettingSanity by RealityRipple

https://addons.mozilla.org/en-US/firefox/addon/settingsanity/

Enjoy!

Sirus
sirusdark.ca

References
-https://support.mozilla.org/en-US/questions/969764