RECENT TOPICS » View all
Altered Copy Story to automatically star stories copied into the story area and unstar those that were removed. To do this, when you press the 'Update Story' button the script checks which author tags (the (author,date) info appended to a story when you push one of the copy links) were added or removed (or otherwise mutilated) and stars accordingly. This does not work if you push the copy button offered by the site, as that one doesn't add author tags.
It's still possible to star and unstar stories yourself of course. If e.g. you had to remove a story because you had to make space for another one or because you're publishing your own, but you feel like it still deserves a star, push the star icon for that story after you updated the story. Or if you copied a story, but don't really think it deserves a star, unstar it afterwards. Partly because of this reason, automatic starring does not apply to stories copied with an earlier version of this script. I'm currently working on a script that will star earlier copied stories for every frame in one go.
The script now also displays the star and report count in the top part of the story area for a story you published. Even if it received no stars yet, the star icon will still appear, making it easy to recognize whether you published it or not without having to click on the story to see the checkbox (unpublished stories will never show anything, even if they had previously received stars or reports). Also, clicking on one of the icons will jump to the spot in the shared story section where your story is listed, so you can check in what company it is.
For newcomers to this script, the script adds up to 3 links ([+], [-], [o]) next to each shared story, that when clicked, will copy the story into the story edit area, each in a different way. [+] simply copies the story as is, much like the site's copy button (the white pages icon at the right end of the star and report buttons), [-] swaps #'s and *'s (keywords and primitives) and [o] lowercases and turns into primitives words in full uppercase. The latter links are to counter some "alternative" story formatting styles.
Unlike the copy icon, the previous story content is preserved and copied stories are added to the end, with two newlines to separate them. Use the Story with Line Breaks script to display paragraphs properly and the Clear and restore story script to conveniently clear previous content.
Also, as already mentioned above, a copied story will be followed by an (author,date) span to identify the original author and update time at the time of copying. Very useful for checking which story was borrowed and which is your own, whether a new version was published, or for gathering info such as from which author you borrowed most, or for implementing features like automatic (un)starring.
Last edited by woelpad (2008 May 02, 4:20 am)
In regards to the links for dictionaries and stroke order diagram script,
I find the animated stroke order diagrams that appear directly in the script to be very useful. The limited number of kanji that it displays is not so useful though...
I found this site, http://www.kanjicafe.com/ and they have more than 1500 animated stroke order diagrams. It's still not all of them, but its much more than this script currently uses.
Perhaps these could replace the existing diagrams in the script?
I'm confused :S I have firefox 3 now, downloaded greasemonkey for the first time, now how exactly do I make it so that it helps me with this site? (I read the begining of this thread and am still confused
)
The kanji links script doesn't seem to work in firefox 3.
The error console says "component is not available" on line 56 of the script, which is:
var content = container.appendChild(document.createElement('div'));
Looks like content became a reserved keyword. I already mailed Ricardo with a solution. If you want to try for yourself, open the script in an editor and replace all instances of the variable content with another name, e.g. content1. Variations such as updateContent or 'content' between quotes should be left as is. Only change those that are stand-alone or followed by a dot. Save the file and reload the page.
Lazar, what script(s) are you trying to install? To see if Greasemonkey is running, look at the bottom right corner of your browser window. There should be a monkey face displayed there. Right clicking on it will list the scripts that are active on the page you're currently watching. Also, in the Tools (or Extra) menu, there should be a Greasemonkey submenu with a.o. a Manage userscripts item. Click that to see which ones you have installed.
To edit a script, select one and push the Edit button, then if asked, enter a path to a text editor, such as wordpad (not a document editor such as Word). Most scripts however should work out of the box if you navigate to the pages that they operate on. These pages are listed on the right hand panel of the Manage dialog. Usually though the script's description in the forum threads should be clear enough as to know which pages they operate on or how they work.
I contacted Ricardo and he told me he wouldn't be able to update it for some time. So instead I've uploaded a streamlined version to userscripts.org. Same functionality, easier to maintain (imho).
Taking a cue from PunBB (the system behind this forum), I have adapted Story Links and Pictures to turn the update times for public stories into links pointing to that story. As such, you can now right-click on the update time, copy the url and paste it elsewhere to provide a reference to that particular story.
I also made the script alter the behavior of the "All my stories" section. It now reinserts the frame links that Fabrice had decided to remove. Clicking on any link will open the page in a different tab/window. Clicking anywhere else in the story box will however no longer navigate to the study page for that kanji; you will need to click on the keyword itself, and as with the other links, the study page will open in a different tab or window. I think this behavior is quite acceptable, but I admit it was done after several other approaches failed.
Recently, the Kanji link script is no longer working for me. I am still using Firefox 2.0 (I did not upgrade just because I was afraid of problems with Greasemonkey!?). Reinstalling the script did not help. Any suggestion?
Thanks.
Did you install the one on userscript.org? That should work fine both in FF2 and 3.
As for upgrading to FF3, I can tell you that it runs fine for me. The "Quick Locale Switcher" addon gave me some headaches at the start, but perhaps you can trust the latest version? Or don't use it altogether. All GM scripts that I have installed seem to work properly (be sure to install the latest version). I'd say upgrade now. No need to stay behind.
Woelpad,
I have downloaded the version you pointed out and upgraded to Ff 3.0 and? everything is working!
Great! Thanks a lot.
I have added an update checker feature to all my Greasemonkey scripts for Firefox. This will warn you automatically and on a daily basis of any new updates to the script.
If one is found, a pop-up box will invite you to download the new version. It will open the download page in a new tab, which unfortunately does not come to the foreground (a known Greasemonkey bug).
For manually checking, select Greasemonkey in the Extra menu and then look under User Script Commands.
To disable this service, open the script in an editor and set the version_timestamp variable to 0.
Updated the Kanji Links script to always open a link in a different tab. Right-clicking and selecting the 'Open in a different tab' command is too cumbersome for my taste. Those who installed the previous version should get a warning notifying them of an update next time (though perhaps not today) they log in to the koohii site and visit the study page.
woelpad wrote:
I have added an update checker feature to all my Greasemonkey scripts for Firefox. This will warn you automatically and on a daily basis of any new updates to the script. version_timestamp variable to 0.
Awesome!
This is the first time I see a GM script having that feature. Actually, I thought the reason why the scripts I've known didn't have it was because GM couldn't do that. Thanks for all your hard work!
Last edited by Transtic (2008 August 29, 2:35 pm)
Hi woelpad,
Takas stroke order website doesn't seem to work anymore. Could you maybe change the link to for example http://www.yamasa.cc/members/ocjs/kanji … 3?OpenForm ?
For people using Google Chrome and still want to use these scripts, there is a "special" extension called Greasemetal. Chrome has no addon functionality, so Greasemetal is sort of a hack, but it supposebly works with Greasemonkey scripts.
I haven't tried it yet personally.
EDIT: Installed it and the install seems to work fine.. but the script I installed (substitute keywords) doesn't seem to work at all, it's not doing anything.
EDIT2: Found the error, seems that Greasemetal has no support for GM_setValue and GM_getValue, so Substitute Keywords won't work on it ![]()
Last edited by Tobberoth (2008 October 02, 12:02 pm)
@Proxx: I added a "Yamasa Kanji Online Dictionary" link.
@Tobberoth: Correct. Kazuho implemented most of the GM_ functions, just not these, according to his blog (japanese version also available, but the details for this article point back to the amazingly well written english page). These things seem hard to implement. Try some of the scripts that don't store data, such as Copy Story. For others, check out the ones that have an Opera counterpart.
fantastic, thanks!
Hi,
I'm planing to buy an ipod touch and want to do my rtk reviews with it. However I'm using firefox with the greasemonkey script to replace keywords on my computer. I can't do my reviews without using my own keywords. Is it possible to use the greasemonkey script on an iphone/ipod touch?
Thanks.
Sequa wrote:
Hi,
I'm planing to buy an ipod touch and want to do my rtk reviews with it. However I'm using firefox with the greasemonkey script to replace keywords on my computer. I can't do my reviews without using my own keywords. Is it possible to use the greasemonkey script on an iphone/ipod touch?
Thanks.
No. It's not even possible with Safari nightlies or Safari4 beta on a Mac since Greasekit relies on a very messy hack. There is no way to make it work on an iPod which runs Safari, on a system which lacks the interface that the hack uses, and isn't even jailbroken yet. You're better off just importing your data into Anki and using iAnki on the iPod.
Last edited by Jarvik7 (2008 October 30, 8:31 pm)
Ricardo wrote:
LINKS FOR DICTIONARIES (and other kanji info) AND STROKE ORDER DIAGRAM
Hello, does this still work? I'm on firefox 3.0.5 and newest Greasemonkey. However, when I hover over a kanji in the study section, nothing happens... ![]()
Edit: Sorry, I should have read the whole thread first. The updated version works. Thanks! ![]()
Last edited by stoked (2009 January 19, 12:54 pm)
Where is the data for the Substitute Keyword script saved?
My computer crashed the other day, which for some reason reset all the add-ons I had for Firefox. Now it seems that all the substituted keywords I had added aren't working. Would the file still be somewhere, or will I have to add them all again (although I need to go through every kanji I added since I haven't reviewed them in a long while, it's just sort of annoying to have to do them all again).
albion wrote:
Where is the data for the Substitute Keyword script saved?
My computer crashed the other day, which for some reason reset all the add-ons I had for Firefox. Now it seems that all the substituted keywords I had added aren't working. Would the file still be somewhere, or will I have to add them all again (although I need to go through every kanji I added since I haven't reviewed them in a long while, it's just sort of annoying to have to do them all again).
I had to look for ages to find it myself, but this is where it is:
Documents and Settings\yourUsername\Application Data\Mozilla\Firefox\Profiles\profile.95854blabla\
In there, there should be a prefs.js. That's where the data is saved.
Will the Greasemonkey scripts be compatible with the site's new layout? I've been using the keyword script to convert my keywords to Japanese, and I'd hate to lose it all.
(I know I could use Anki, but I really prefer this site's simple design.)
It would help if I'd get access to the site before its release, but I'm not counting on it. Depending on how radical the overhaul will be, it might take a couple of days to update the scripts, during which time you can twiddle your fingers. I'll try to give priority to those in higher demand. I can't speak for other authors, but I believe I'm maintaining over 90% of the active scripts, including those originally created by Ricardo.
It would be great if there was a period of time when people could opt-in to the new layout. That way, people could wait for the scripts to be upgraded without losing any of the functions they are using right now (including myself).
Couldn't it be possible to include some of the functions provided by the scripts into the new layout? I think that having support for choosing fonts and different editions of RTK would be a great improvement for the site.
It would be great to have a separate "install", to test it for a few days online.
The main problem is the database. I'll have to make a copy for testing the refactored version, which I'm not sure how to do now (handling databases locally is easy, on a remote host, its 120+mb compressed... so it"s not as easy as "uploading" another copy, plus I don't have a real SHELL access on this host, only CRON jobs, I have SHELL access to MySQL but uploading data with "SOURCE" takes forever).
As for "new layout", the site update replaces ALL the code, but there is no new layout as such. The flashcard review page has been redesigned yes, as you can see in the site news. But the "redesign" I was talking about before is an entirely different subject. I abandoned it because I started to dislike it, it didn't look unique anymore, just a mash up of ideas I'd see around. Instead like I did with the recent homepage revamp, is I am going to introduce graphic updates gradually. The only thing I really liked is the homepage redesign, and what I did there last week is I piece up parts of that redesign and adapted it to the existing site.

