Advertisement
Guest User

Perapera Chinese: “Current browser only” mode bugfix and use

a guest
Apr 4th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. Bug: When in "Current browser only" mode, I had to manually enable the extension for every tab. Disabling worked for all tabs at once though. It didn't seem like an intended behaviour and Rikaichan does it differently
  2.  
  3. Fix: http://pastebin.com/TuQQikDS
  4. It's just a partially reversion to Rikaichan code. (bro.cperapera==null) could be elaborated into (bro.cperapera===null || bro.cperapera===undefined) if you still prefer to keep it strict
  5.  
  6. Useless condition: I have no idea why ((ppcConfig.enmode > 0) || (ppcConfig.enmode < 2)) is there. That's always true for any integer ppcConfig.enmode, and so has no effect. Rikaichan (hope I'm not annoying with this one) does have just (rcxConfig.enmode>0) in there
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement