Many user experiece problem while using Greasemonkey (a firefox extension), especially when they trying to install a user js script. Below is the most common error they get “failure code: 0x80520012 ”
Error Installing User Script:
[Exception…”Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND)[nsIChannel.open]” nsresult: “0x80520012 (NS_ERROR_FILE_NOT_FOUND)” location: “JS frame:: chrome://greasemonkey/content/utils.js :: getContents:: line 167” data:np]
The solve this failure code: 0x80520012, simply go to:-
Win XP / Win 2k
C:\Documents and Settings\ [User Name]\ Application Data\ Mozilla\ Firefox\ Profiles\ xxxxxxxx.default\
Win 98
C:\WINDOWS\Application Data\Mozilla\Firefox\Profiles\xxxxxxxx.default\
Linux (usually is located is)
~/.mozilla/firefox/xxxxxxxx.default/
Mac OS X
~/Library/Application Support/Firefox/Profiles/xxxxxxxx.default/
(where xxxxxxxx is a random string of 8 characters)
– create a folder name gm_scripts
– create a blank config.xml in gm_scripts folder
Once you create everything above, you can try to install a user script again. The problem should be solved!
[tags]greasemonkey, firefox browser, browser, browser extension, firefox extension, error solution[/tags]
i use windows 7 and im trying to install userscripts for KOC and i get this error:
Script could not be installed [Exception… “Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.open]” nsresult: “0x80520012 (NS_ERROR_FILE_NOT_FOUND)” location: “JS frame :: chrome://greasemonkey/content/utils.js :: getContents :: line 242” data: no]
if there is a solution can someoone plz tell me how to fix this issue it is very important to me ty
Works fine ! Thank you very much dude.
im running windows 7 is the fix different? ps im an idiot at this
Script could not be installed [Exception… “Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.open]” nsresult: “0x80520012 (NS_ERROR_FILE_NOT_FOUND)” location: “JS frame :: chrome://greasemonkey/content/utils.js :: getContents :: line 242” data: no]
i cant seam to fix this error at all
create the blank config file should fix the problem
Script could not be installed [Exception… “Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.open]” nsresult: “0x80520012 (NS_ERROR_FILE_NOT_FOUND)” location: “JS frame :: chrome://greasemonkey/content/utils.js :: getContents :: line 242” data: no]
Still have the error. Maybe I didn’t create the blank config file right. That is just a folder, correct?
IT F***ING WORKS!!! That rocks, you saved me from alot of head banging on the walls!
[…] from 2008-07-03] Following the instructions on techiecorner.com made it happen: it now works again – thank you, Jaidev (and Zebra, of […]
I too had the same error, but in my case the folder and file were already created.
Well it turned out that the config.xml file was installed with read only access, so i just right clicked the file and changed the permission to read and write access . These solved the problem, =)
BTW, I’m running Xubuntu Hardy.
anotherone2: yes u can create the folder for it.
I too went and looked for the location and couldn’t find it. I even did a search on FireFox; another search on Mozilla; and another search on profile…nothing. Can I create the folder?
Thanks a bunch! I was trying to install this script for such a long time and it solved my problem first try! Thank you!
TERRIFIC !
unfortunately, it doesn’t work for me – now I get no elemtent found
chrome://greasemonkey/content/install.xul line 1
Thank You!!!!! !!!!! You sooooooo help me!
Thanks for the tip :), it works.
Thanks, mate, saved me a from some forehead slapping pain. 🙂
anotherone: i think u went into the wrong user folder. Try to look for other user, if you installed mozilla firefox sure there will be the Mozilla folder.
if i go to C:\Documents and Settings\ [User Name]\ Application Data\
the only folder i see there is “Microsoft”, no “Mozilla” folder at all…
Was looking for this EVERYWHERE!!
Thankyou so much.
TNM
Excelent post! It´s solve my problem.
Thanks and greetings from Argentina.