X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

Why does Firefox not load javascript accessed by a link?

Posted

I have a FF 15.0.1, add-ons disabled. Every time a hit a link to a javascript, the script does not execute, it just loads as a text to a browser's window. For example on http://markup.io there is a script for making annotations on a web pages (http://api.markup.io/bootstrap.js?v=1&). Other browsers run the script but FF doesn't.

Chosen solution

A .js file is not executed directly from the URL bar. Could you describe how you want to run it? For example, if you want to inject the script into the current page or have it operate on the current page, you could try saving it as a bookmarklet. To do that:

Right-click a blank area of the Bookmarks Toolbar and choose New Bookmark.

In the location, type or paste javascript: and then paste the script. At the end of the script, add void 0; (if necessary, add a semicolon before it so it is separated from the pasted script).

Give your bookmarklet a handy name then click Add.

Read this answer in context 1

Additional System Details

Sites Affected

http://api.markup.io/bootstrap.js?v=1&

Installed Plug-ins

  • Google Update
  • Shockwave Flash 11.4 r402
  • Adobe PDF Plug-In For Firefox and Netscape 10.1.4
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Next Generation Java Plug-in 1.6.0_33 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • 5.1.10411.0
  • wpidetector

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1

More Information

Informacje o aplikacji
Nazwa
Firefox
Wersja
15.0.1
Identyfikator programu
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20100101 Firefox/15.0.1
Folder profilu
Pokaż folder
Włączone wtyczki
about:plugins
Konfiguracja kompilacji
about:buildconfig
Zgłoszenia awarii
about:crashes
Zużycie pamięci
about:memory
Rozszerzenia
Nazwa
Wersja
Włączone
ID
Adblock Plus
2.1.2
false
{d10d0bf8-f5b5-c8b4-a8b2-2b9879e08c5d}
avast! WebRep
7.0.1466
false
wrc@avast.com
British English Dictionary
1.19.1
false
en-GB@dictionaries.addons.mozilla.org
Firebug
1.10.3
false
firebug@software.joehewitt.com
Firecookie
1.4
false
firecookie@janodvarko.cz
Java Console
6.0.33
false
{CAFEEFAC-0016-0000-0033-ABCDEFFEDCBA}
NoScript
2.5.4
false
{73a6fe31-595d-460b-a920-fcc0f8843232}
Pencil
1.3.4
false
pencil@evolus.vn
Redirect Cleaner
2.1.0
false
redirectcleaner@example.net
Xmarks
4.1.2
false
foxmarks@kei.com
Ważne zmodyfikowane ustawienia
Nazwa
Wartość
accessibility.typeaheadfind.flashBar
0
browser.cache.disk.capacity
1048576
browser.cache.disk.smart_size.first_run
false
browser.cache.disk.smart_size_cached_value
757760
browser.history_expire_days.mirror
180
browser.places.importBookmarksHTML
false
browser.places.smartBookmarksVersion
4
browser.startup.homepage
http://www.google.com/
browser.startup.homepage_override.buildID
20120905151427
browser.startup.homepage_override.mstone
15.0.1
browser.tabs.onTop
false
browser.tabs.warnOnClose
false
extensions.lastAppVersion
15.0.1
font.internaluseonly.changed
true
network.cookie.prefsMigrated
true
places.database.lastMaintenance
1346929469
places.history.expiration.transient_current_max_pages
104858
places.history.expiration.transient_optimal_database_size
67048407
places.last_vacuum
1298877653
print.print_printer
FinePrint
print.printer_CutePDF_Writer.print_bgcolor
false
print.printer_CutePDF_Writer.print_bgimages
false
print.printer_CutePDF_Writer.print_command
print.printer_CutePDF_Writer.print_downloadfonts
false
print.printer_CutePDF_Writer.print_edge_bottom
0
print.printer_CutePDF_Writer.print_edge_left
0
print.printer_CutePDF_Writer.print_edge_right
0
print.printer_CutePDF_Writer.print_edge_top
0
print.printer_CutePDF_Writer.print_evenpages
true
print.printer_CutePDF_Writer.print_footercenter
print.printer_CutePDF_Writer.print_footerleft
&PT
print.printer_CutePDF_Writer.print_footerright
print.printer_CutePDF_Writer.print_headercenter
print.printer_CutePDF_Writer.print_headerleft
print.printer_CutePDF_Writer.print_headerright
print.printer_CutePDF_Writer.print_in_color
true
print.printer_CutePDF_Writer.print_margin_bottom
0.5
print.printer_CutePDF_Writer.print_margin_left
0.5
print.printer_CutePDF_Writer.print_margin_right
0.5
print.printer_CutePDF_Writer.print_margin_top
0.5
print.printer_CutePDF_Writer.print_oddpages
true
print.printer_CutePDF_Writer.print_orientation
1
print.printer_CutePDF_Writer.print_pagedelay
500
print.printer_CutePDF_Writer.print_paper_data
9
print.printer_CutePDF_Writer.print_paper_height
11,00
print.printer_CutePDF_Writer.print_paper_size_type
0
print.printer_CutePDF_Writer.print_paper_size_unit
1
print.printer_CutePDF_Writer.print_paper_width
8,50
print.printer_CutePDF_Writer.print_reversed
false
print.printer_CutePDF_Writer.print_scaling
1,00
print.printer_CutePDF_Writer.print_shrink_to_fit
false
print.printer_CutePDF_Writer.print_to_file
false
print.printer_CutePDF_Writer.print_unwriteable_margin_bottom
0
print.printer_CutePDF_Writer.print_unwriteable_margin_left
0
print.printer_CutePDF_Writer.print_unwriteable_margin_right
0
print.printer_CutePDF_Writer.print_unwriteable_margin_top
0
print.printer_FinePrint.print_bgcolor
false
print.printer_FinePrint.print_bgimages
false
print.printer_FinePrint.print_command
print.printer_FinePrint.print_downloadfonts
false
print.printer_FinePrint.print_edge_bottom
0
print.printer_FinePrint.print_edge_left
0
print.printer_FinePrint.print_edge_right
0
print.printer_FinePrint.print_edge_top
0
print.printer_FinePrint.print_evenpages
true
print.printer_FinePrint.print_footercenter
print.printer_FinePrint.print_footerleft
&PT
print.printer_FinePrint.print_footerright
print.printer_FinePrint.print_headercenter
print.printer_FinePrint.print_headerleft
print.printer_FinePrint.print_headerright
print.printer_FinePrint.print_in_color
true
print.printer_FinePrint.print_margin_bottom
0.5
print.printer_FinePrint.print_margin_left
0.5
print.printer_FinePrint.print_margin_right
0.5
print.printer_FinePrint.print_margin_top
0.5
print.printer_FinePrint.print_oddpages
true
print.printer_FinePrint.print_orientation
1
print.printer_FinePrint.print_page_delay
50
print.printer_FinePrint.print_pagedelay
500
print.printer_FinePrint.print_paper_data
9
print.printer_FinePrint.print_paper_height
11,00
print.printer_FinePrint.print_paper_size_type
0
print.printer_FinePrint.print_paper_size_unit
1
print.printer_FinePrint.print_paper_width
8,50
print.printer_FinePrint.print_reversed
false
print.printer_FinePrint.print_scaling
1,00
print.printer_FinePrint.print_shrink_to_fit
true
print.printer_FinePrint.print_to_file
false
print.printer_FinePrint.print_unwriteable_margin_bottom
0
print.printer_FinePrint.print_unwriteable_margin_left
0
print.printer_FinePrint.print_unwriteable_margin_right
0
print.printer_FinePrint.print_unwriteable_margin_top
0
print.printer_Microsoft_XPS_Document_Writer.print_bgcolor
false
print.printer_Microsoft_XPS_Document_Writer.print_bgimages
false
print.printer_Microsoft_XPS_Document_Writer.print_command
print.printer_Microsoft_XPS_Document_Writer.print_downloadfonts
false
print.printer_Microsoft_XPS_Document_Writer.print_edge_bottom
0
print.printer_Microsoft_XPS_Document_Writer.print_edge_left
0
print.printer_Microsoft_XPS_Document_Writer.print_edge_right
0
print.printer_Microsoft_XPS_Document_Writer.print_edge_top
0
print.printer_Microsoft_XPS_Document_Writer.print_evenpages
true
print.printer_Microsoft_XPS_Document_Writer.print_footercenter
print.printer_Microsoft_XPS_Document_Writer.print_footerleft
&PT
print.printer_Microsoft_XPS_Document_Writer.print_footerright
&D
print.printer_Microsoft_XPS_Document_Writer.print_headercenter
print.printer_Microsoft_XPS_Document_Writer.print_headerleft
&T
print.printer_Microsoft_XPS_Document_Writer.print_headerright
&U
print.printer_Microsoft_XPS_Document_Writer.print_in_color
true
print.printer_Microsoft_XPS_Document_Writer.print_margin_bottom
0.5
print.printer_Microsoft_XPS_Document_Writer.print_margin_left
0.5
print.printer_Microsoft_XPS_Document_Writer.print_margin_right
0.5
print.printer_Microsoft_XPS_Document_Writer.print_margin_top
0.5
print.printer_Microsoft_XPS_Document_Writer.print_oddpages
true
print.printer_Microsoft_XPS_Document_Writer.print_orientation
0
print.printer_Microsoft_XPS_Document_Writer.print_pagedelay
500
print.printer_Microsoft_XPS_Document_Writer.print_paper_data
9
print.printer_Microsoft_XPS_Document_Writer.print_paper_height
11,00
print.printer_Microsoft_XPS_Document_Writer.print_paper_size_type
0
print.printer_Microsoft_XPS_Document_Writer.print_paper_size_unit
1
print.printer_Microsoft_XPS_Document_Writer.print_paper_width
8,50
print.printer_Microsoft_XPS_Document_Writer.print_reversed
false
print.printer_Microsoft_XPS_Document_Writer.print_scaling
1,00
print.printer_Microsoft_XPS_Document_Writer.print_shrink_to_fit
true
print.printer_Microsoft_XPS_Document_Writer.print_to_file
false
print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_bottom
0
print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_left
0
print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_right
0
print.printer_Microsoft_XPS_Document_Writer.print_unwriteable_margin_top
0
print.printer_\\FILE_SERVER\prg_samsung.print_bgcolor
false
print.printer_\\FILE_SERVER\prg_samsung.print_bgimages
false
print.printer_\\FILE_SERVER\prg_samsung.print_command
print.printer_\\FILE_SERVER\prg_samsung.print_downloadfonts
false
print.printer_\\FILE_SERVER\prg_samsung.print_edge_bottom
0
print.printer_\\FILE_SERVER\prg_samsung.print_edge_left
0
print.printer_\\FILE_SERVER\prg_samsung.print_edge_right
0
print.printer_\\FILE_SERVER\prg_samsung.print_edge_top
0
print.printer_\\FILE_SERVER\prg_samsung.print_evenpages
true
print.printer_\\FILE_SERVER\prg_samsung.print_footercenter
print.printer_\\FILE_SERVER\prg_samsung.print_footerleft
&PT
print.printer_\\FILE_SERVER\prg_samsung.print_footerright
print.printer_\\FILE_SERVER\prg_samsung.print_headercenter
print.printer_\\FILE_SERVER\prg_samsung.print_headerleft
print.printer_\\FILE_SERVER\prg_samsung.print_headerright
print.printer_\\FILE_SERVER\prg_samsung.print_in_color
true
print.printer_\\FILE_SERVER\prg_samsung.print_margin_bottom
0.5
print.printer_\\FILE_SERVER\prg_samsung.print_margin_left
0.5
print.printer_\\FILE_SERVER\prg_samsung.print_margin_right
0.5
print.printer_\\FILE_SERVER\prg_samsung.print_margin_top
0.5
print.printer_\\FILE_SERVER\prg_samsung.print_oddpages
true
print.printer_\\FILE_SERVER\prg_samsung.print_orientation
0
print.printer_\\FILE_SERVER\prg_samsung.print_page_delay
50
print.printer_\\FILE_SERVER\prg_samsung.print_pagedelay
500
print.printer_\\FILE_SERVER\prg_samsung.print_paper_data
9
print.printer_\\FILE_SERVER\prg_samsung.print_paper_height
11,00
print.printer_\\FILE_SERVER\prg_samsung.print_paper_size_type
0
print.printer_\\FILE_SERVER\prg_samsung.print_paper_size_unit
1
print.printer_\\FILE_SERVER\prg_samsung.print_paper_width
8,50
print.printer_\\FILE_SERVER\prg_samsung.print_reversed
false
print.printer_\\FILE_SERVER\prg_samsung.print_scaling
1,00
print.printer_\\FILE_SERVER\prg_samsung.print_shrink_to_fit
false
print.printer_\\FILE_SERVER\prg_samsung.print_to_file
false
print.printer_\\FILE_SERVER\prg_samsung.print_unwriteable_margin_bottom
0
print.printer_\\FILE_SERVER\prg_samsung.print_unwriteable_margin_left
0
print.printer_\\FILE_SERVER\prg_samsung.print_unwriteable_margin_right
0
print.printer_\\FILE_SERVER\prg_samsung.print_unwriteable_margin_top
0
privacy.cpd.siteSettings
true
privacy.sanitize.migrateFx3Prefs
true
privacy.sanitize.timeSpan
0
security.warn_viewing_mixed
false
Grafika
Opis adaptera
NVIDIA nForce 750a SLI
ID dostawcy
0x10de
ID urządzenia
0x084d
RAM adaptera
128
Sterowniki adaptera
nvd3dumx,nvwgf2umx,nvwgf2umx nvd3dum,nvwgf2um,nvwgf2um
Wersja sterownika
8.17.12.9573
Data sterownika
2-9-2012
Włączone Direct2D
true
Włączone DirectWrite
true (6.1.7601.17789)
Parametry ClearType
Gamma: 2200 Pixel Structure: RGB ClearType Level: 100 Enhanced Contrast: 50
Renderer WebGL
Google Inc. -- ANGLE (NVIDIA nForce 750a SLI) -- OpenGL ES 2.0 (ANGLE 1.0.0.1041)
Okna ze sprzętowym przyspieszeniem grafiki
1/1 Direct3D 10
AzureBackend
direct2d
JavaScript
Przyrostowy GC
0
Wersje bibliotek
Oczekiwana wersja minimalna
Wersja w użyciu
NSPR
4.9.1
4.9.1
NSS
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC
NSS Util
3.13.6.0
3.13.6.0
NSS SSL
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC
NSS S/MIME
3.13.6.0 Basic ECC
3.13.6.0 Basic ECC

jscher2000
  • Top 10 Contributor
2356 solutions 20865 answers

Chosen Solution

A .js file is not executed directly from the URL bar. Could you describe how you want to run it? For example, if you want to inject the script into the current page or have it operate on the current page, you could try saving it as a bookmarklet. To do that:

Right-click a blank area of the Bookmarks Toolbar and choose New Bookmark.

In the location, type or paste javascript: and then paste the script. At the end of the script, add void 0; (if necessary, add a semicolon before it so it is separated from the pasted script).

Give your bookmarklet a handy name then click Add.

Helpful Reply

Thank you for tip. Based on it, I was able to investigate a problem little deeper.

It looks like a browser behaviour differs between workstations and I don't have a clue why (both have FF 15.0.1). On a http://markup.io page, there is a area which says "Drag to a bookmarks bar".

Browser on one workstation shows it as a link to http://api.markup.io/bootstrap.js?v=1&

Other browser shows it as a javascript:...content here...;

It works if I paste javascript into a link as you stated or if I make a bookmark using the other workstation. But I am curious: what setting of my workstation is responsible of showing a link rather than actual javascript? I would like to avoid such problems in the future.

Modified by rakbar

Helpful Reply

UPDATE: It was a Redirect Cleaner add-on which made links appear in such way. I did disable all add-ons when I was searching for reasons why bookmark is not working, but it was AFTER I created the invalid bookmark.

Modified by rakbar