With the help of ChatGPT I wrote a userscript, that makes vocabulary items about 20% smaller, than they are now.
I know that technically all items are the same size (looking at the code), but still something is off, that makes them appear or seem bigger and bolder than the rest. This throws me off so-so-so much. So I wrote this script with the help of ChatGPT to make vocabulary items specifically smaller.
I tested it a bit, and it seems to work, but if there are issues let me know.
A known issue is, that when you first open up the reviews, and the first item is a vocab, it appears in the old size, but everything after that is the smaller version.
How did you get the information about the structure of the wanikani webpages into chatgpt? I would think it needs to know a lot of implementation details to correctly hook a userscript into a specific part of a webpage.
I just told him what I wanted. All the names of the divs, the elements and all the other stuff I had to manually seek out and provide to him. He just made the code, the javascript, I did everything else. It can code for you, but you have to be extremely precise about what you want and provide him with all the information it needs to write something that works.
It took a lot of work, and revision. I didnât just open chatGPT and tell him âYo write a Wanikani userscript that does xxxâ and then he magically did it
Itâs really cool that that worked! I wouldnât have thought itâd be able to create a userscript even with human input, because itâs so specific. Well, this one isnât too complex so itâs fine.
Oh yeah, I noticed that ChatGPT made some rather unsightly mistakes regarding userscript conventions. Itâs also better to create a userstyle for changing the style of a website instead of a script.
Because I also think the vocab is too big I made a really short userstyle which you can download and use for Stylus (userstyle add-on). Iâm not trying to advertise here, itâs just that I made my own and if anyone else wants to have their styles and scripts separate they can do so as well
Itâs a good style, really looks like the old way it used to look. But you made the âmatchâ a bit restrictive. This way it only works during reviews. If you move the asterix ( * ) right after subjects/ then it works on everything, reviews, extra study, new lessons etc. You should make your own thread too, because itâs really good.