[Userscript] Wanikani Lesson Spoiler Removal

mtcleary said... Alright, so here's my problem. I like to cycle through my readings first, so hiding the meaning at the top is very beneficial for that. However, after cycling through readings, is there a way to turn back on the meaning spoilers at the top without getting new lessons?
Yea

 I want to study the meanings afterwards, and obviously I can't because they're not there. I've tried refreshing, but I get new lessons when I do that, and I have to start all over. Anyone know if there is a fix for this? It would be awesome if a hover function could be added, so that I can hover over the meaning when I'm trying to study it, but hide it when I'm not.
 I'm honestly really confused about your learning process. There are tabs for vocab/kanji breakdown, meaning, reading, and sometimes examples. So if you're going through the items again, you can just navigate to the meaning tab if you want to look it up, right?
Mempo said...
mtcleary said... Alright, so here's my problem. I like to cycle through my readings first, so hiding the meaning at the top is very beneficial for that. However, after cycling through readings, is there a way to turn back on the meaning spoilers at the top without getting new lessons?
Yea

 I want to study the meanings afterwards, and obviously I can't because they're not there. I've tried refreshing, but I get new lessons when I do that, and I have to start all over. Anyone know if there is a fix for this? It would be awesome if a hover function could be added, so that I can hover over the meaning when I'm trying to study it, but hide it when I'm not.
 I'm honestly really confused about your learning process. There are tabs for vocab/kanji breakdown, meaning, reading, and sometimes examples. So if you're going through the items again, you can just navigate to the meaning tab if you want to look it up, right?
 It's completely possible that I'm making a noobish mistake, I tend to do that every now and again ;). Words that only have one meaning, for example, 南米, which means only South America, will not have the meaning show up at all. I could read the mnemonic to find the meaning for it, but otherwise 南米 has no synonyms meaning that I can't find the meaning without looking at the mnemonic or without refreshing without the script. Does it makes sense what I'm saying now? I try to avoid the mnemonics because I rely on pure self-study techniques to memorize, so looking at the mnemonic to find the meaning of the word sort of defeats the purpose.

@Mempo, I was also going to request some way to bring the meaning back momentarily - maybe by hovering over where it should be or over the Japanese with the mouse? Or a toggle button?

@mtcleary, a ‘workaround’ is looking at the meaning mnemonic. Usually the the main meaning will be highlighted with purple.

konekush said... @Mempo, I was also going to request some way to bring the meaning back momentarily - maybe by hovering over where it should be or over the Japanese with the mouse? Or a toggle button?

@mtcleary, a 'workaround' is looking at the meaning mnemonic. Usually the the main meaning will be highlighted with purple.

 That's definitely a workaround, but like I said earlier, I try to avoid looking at the mnemonics or anywhere near them because I study differently than a lot of other people on here, and I don't like them getting stuck in my head.
mtcleary said...
...
 It's completely possible that I'm making a noobish mistake, I tend to do that every now and again ;). Words that only have one meaning, for example, 南米, which means only South America, will not have the meaning show up at all. I could read the mnemonic to find the meaning for it, but otherwise 南米 has no synonyms meaning that I can't find the meaning without looking at the mnemonic or without refreshing without the script. Does it makes sense what I'm saying now? I try to avoid the mnemonics because I rely on pure self-study techniques to memorize, so looking at the mnemonic to find the meaning of the word sort of defeats the purpose.
 As @konekush said, the meaning is usually highlighted in purple if you look at the mnemonics. I see how you might have a problem if you don't do that.

You're completely right. I didn't know how much I relied on that meaning until I made it disappear ;p

v2.1 has a hover effect
v2.1 has a hover effect
 This is literally perfect, and exactly what I needed. Thank You!

That’s perfect, thank you!

I did not know I needed this…Until now.
Thanks man :slight_smile:

oh, just saw that the hover effect already was a request - but i have another thing i want to ask for: to make the meaning visible again once i select the ‘meaning’-tab, because i cycle through wanikani with keyboard only and mouse hovering ruins my flow ^^ … or maybe even better, a (customizable?) keyboard button to toggle visibility ?

otherwise an awesome script as usual, thanks!

I’ll agree with shikaji on this one. I, too cycle through lessons with the arrow keys. This script is definitely something I’ve been wanting for a while, but it would be super 便利 to not have to reach for my mouse to see the meaning.

As usual, thanks for all you guys do writing awesome scripts to improve the user experience.

v3.0 has shortcut/arrow key/clicking support

Known problems: short blinking of meaning when navigating to kanji examples and after the reading.

Don’t ask me to fix it because I physically can’t. This update already contains some really weird stuff I can’t really explain (but apparently works). Consider it a funny quirk until my IQ jumps up a few points and I suddenly see the error in my ways.

wow, fast! awesome, thanks! gotta wait for the next lessons to try it out though ^.^

Thanks, looks good. I greatly appreciate all the time you guys put into these scripts.

found something! such a m/Mean litte detail.

putting this @line 37

if(("#supplement-nav ul li.active").text()==="meaning" || ("#supplement-nav ul li.active").text()===“Meaning” ){
makes the whole //ARROWS AND OTHER SHORTCUTS dispensable.  with kanji&vocab now the answer shows up when clicking on or browsing through the tabs to “meaning”.
shikaji said... found something! such a m/Mean litte detail.

putting this @line 37
if($("#supplement-nav ul li.active").text()==="meaning" || $("#supplement-nav ul li.active").text()==="Meaning" ){
makes the whole //ARROWS AND OTHER SHORTCUTS dispensable.  with kanji&vocab now the answer shows up when clicking on or browsing through the tabs to "meaning".
 Damn, indeed. Gratz for finding that!

thanks for the fast update and the credits :smiley: now i can add “programming experience” to my CV xD

also i never want to be without this extension anymore. not seeing the translation right away makes me look much more closely at the actual kanji and i feel memorizing has gotten a bit easier that way. for me it’s even doubly good, cause i reset my account from lvl11->0 and so now i can actually see which items i had completely forgotten over the last couple of months.

I added this a couple months ago and I love it. Sorry, I forgot to tell you! It is very helpful and works great.

~frankiebluej

Bumping this topic for @Radish8 to post a modified version of the script that only hides vocab meanings. Sorry for the late response!

// ==UserScript==
// @name        Wanikani Lesson Spoiler Removal
// @namespace   Mempo
// @description Hides the meaning below kanji and vocab on lesson pages
// @include     https://www.wanikani.com/lesson/session
// @version     4
// @run-at      document-end
// @grant       none
// ==/UserScript==

(function() {
    'use strict';

    //HOVER EFFECT

    var css = '#main-info #meaning {visibility:visible;} #main-info.vocabulary #meaning {visibility:hidden;} #main-info.vocabulary:hover #meaning {visibility:visible !important;}';
    $('head').append('<style type="text/css">' + css + '</style>');

    //CLICKING

    $('body').click(function(e) {
        $('#main-info #meaning').css('visibility', '');

        if ($('#supplement-nav ul li.active').text() === 'meaning' || $('#supplement-nav ul li.active').text() === 'Meaning') {
            $('#main-info.vocabulary #meaning').css('visibility', 'visible');
        } else {
            $('#main-info.vocabulary #meaning').css('visibility', 'hidden');
        }

    });
})();
1 Like

Aaah, thank you so much!

Thanks for writing this script! I wanted to let you know of a usefulness not advertised: trying to guess meanings before they’re displayed. Especially for vocab, I really wanted to practice trying to guess/deduce meanings of new words, and was constantly being thwarted by meanings being displayed so prominently during lessons. So thank you!