Substitute keywords gone lost changed back to english

Index » Learning resources

  • 1
 
Silmara Member
From: Bremen, Germany Registered: 2008-07-09 Posts: 22

Hello everyone,

I am almost certain that a similar problem has already been discussed somewhere here, but after an hour of looking for the answer I have given up. So please forgive me if this already has been discussed elsewhere.
Anyway if this is the case one could point me into the direction to the thread.

So here is my problem:
I have not reviewed for some time know and all keywords which I have changed half year ago with the Greasemonkey script have changed back to the english original.
In this time firefox has been updated several times.
I already looked in Greasemonkey if the included pages are right and these seem to be the case.
So I would be very happy if anyone has an idea how I can get my keywords back because I would not enjoy retyping 500 keywords sad

Many thanks!
Silmara

xaarg Member
From: Neverland Registered: 2007-07-13 Posts: 160

Find the directory that contains your Mozilla Firefox profiles (e.g. ~/.mozilla/firefox/ on linux and %APPDATA%\Mozilla\Firefox\Profiles on windows). There should be a prefs.js inside each of the profile dirs (named hfjdfh.default where hfjdh is some random gibberish special to each profile).

There should be a line like this in one of those files, that contains all of your keywords:
user_pref("greasemonkey.scriptvals.http://userscripts.org/scripts/show/7118/Kanji.Koohii: Substitute keywords.Silmara|KeywordList", ...

If you can not find a line like this, then all your keywords are lost and you will need to retype them. If you used the German keywords, then I can send you the proper line containg all German keywords, if you like.

You might also try to make sure that you are using the latest version of Greasemonkey and the latest version of the substition script (get it from http://userscripts.org/scripts/review/7118).

Last edited by xaarg (2009 March 26, 10:09 pm)

Reply #3 - 2009 March 27, 3:48 am
Silmara Member
From: Bremen, Germany Registered: 2008-07-09 Posts: 22

Hello xaarg,

thank you for your helpful reply. It took me a while but I think I finally found the line where the substitute keywords should be. As they are not there I would really appreciate if you can sent me the proper line as you offered.
And then I hope everything will be alright.

Thanks again smile
Sarina

Advertising (register and sign in to hide this)
JapanesePod101 Sponsor
 
Reply #4 - 2009 March 27, 6:24 am
xaarg Member
From: Neverland Registered: 2007-07-13 Posts: 160

You've got mail.

Reply #5 - 2009 May 10, 6:43 am
Biene Member
From: Germany Registered: 2007-09-14 Posts: 107

I seem to have more or less the same problem, though it differs a bit:

The English keywords are still changed to the German keywords when I'm learning the failed kanji but when I'm simply reviewing, only the English keyword is displayed.

I'm not sure if I have the keyword-list on my computer (couldn't find it...) but since the keywords are changed to German when learning, I guess the list should be out there somewhere. Also, as far as I can tell I do have the most recent script for the "substitute keywords". So I don't really know what is amiss or what I should do to fix the problem.

Many thanks for your help.

Reply #6 - 2009 May 10, 7:08 pm
woelpad Member
From: Chiba Registered: 2006-11-07 Posts: 425

You mean you couldn't find the prefs.js file or you couldn't find the keyword list line inside that file? As for active on one page, not on another, open the Greasemonkey management window, select the script and check the list of pages in the panel on the top right. It should include

Code:

http://kanji.koohii.com/review/review.php*

(note the * at the end). If it doesn't, add or edit it. If it does, there must be an error in the script. Go to the review page, start a review and then open the error console (under Tools or Extra or Ctrl+Shift+J). Browse to the end and look for a bold faced error message, then report back.

Reply #7 - 2009 May 11, 3:38 am
Biene Member
From: Germany Registered: 2007-09-14 Posts: 107

Hi woelpad,

thanks for taking your time to help me out. I meant I couldn't find the prefs.js file. There seem to be only a security-prefs.js and a channel-prefs.js on my computer but no prefs.js file. I'm using windows by the way and I've recently updated mozilla, so maybe that's the source of this malfunction?

According to the greasemonkey management list the review.php* script is included. After doing a review the bold message in the error console was:
"unsafeWindow.Function.prototype is undefined" followed by an address (?) pointing to the Firefox-Profiles  ~/gm_scripts/kanjikoohiisubstitutekey.user.js

I have no clue what this means, so I'm waiting for further instructions.

Reply #8 - 2009 May 11, 4:28 am
woelpad Member
From: Chiba Registered: 2006-11-07 Posts: 425

The prefs.js file is in the same directory as gm_scripts. But I don't think we will need it.

The error message should also display a line number on the far right. Could you give that too? Furthermore, make sure you have only one version of the script (refer to the Greasemonkey Management panel) and that that is the latest one available (currently version 1.7 as of May 8 this year). Deactivate or remove any older version, but in the latter case don't remove the associated data (i.e. leave the checkbox blank).

As to the original poster, a loss of data is possible in older versions of Firefox, if you never use the Exit command in the File menu. The Exit command saves all data to the prefs.js file. If you exit in other ways, the settings are only preserved in the cache, and once that cache gets flushed, all your data are lost. I believe the latest Greasemonkey/Firefox combo saves more frequently.

Reply #9 - 2009 May 11, 4:54 am
Biene Member
From: Germany Registered: 2007-09-14 Posts: 107

The line number that was given is 1031. I now uninstalled the old version and reinstalled the new version (though I don't know what you mean to leave the checkbox blank) and everything seems to be working like a charm again.

Thank you very, very much. One day I'll have to treat you to a beer or some such. smile

  • 1