So I want to make a new user script but I’m kinda stuck because #&àµè% VIET WHY??<br><br>If a 'meaning' question comes up in the reviews, I want to replace the kanji with the kana. Seems stupidly simple, but I can't get it to work.<br><br>What should work:<br><br><blockquote>.jStorage.listenKeyChange(‘currentItem’, function(){
if( .jStorage.get("questionType") === "meaning"){<br><br> <b>("#character span")[0].innerHTML = $.jStorage.get(‘currentItem’).kana[0];
}
});
The fucked up thing is: if I paste this in the dev console, it changes immediately, but never if I put it in a script.
I’ve tried lots of variations on the innerHTML thing:
- .text()
- .html()
even flippin’
.append(new span element) //with the intent to hide the original, quite stubborn span elementand it appends not the element I say, but an exact copy of the one already there! What the hell is up with that?
So I smell some sort of obscure property that prevents me from changing this span element.
Any one know a solution to this or encountered something like this before?