-
Notifications
You must be signed in to change notification settings - Fork 149
Added option to make expanded images fit to screen, ran inline-expanding.js through jshint #99
base: master
Are you sure you want to change the base?
Conversation
same problem as with all your scripts. you pollute the global namespace when not needed. incorrect usage of options api. use of names like $mrCheckie instead of some descriptive ones. |
@czaks been having same problem with @anonfagola too, I had to rewrite his scripts today (id_colors.js, id_highlight.js) because of this We should probably push some code quality guidelines into here and vichan-devel/vichan given all the new help we're getting |
@ctrlcctrlv :( |
it's hard to write all code quality guidelines to a file. that's why we have code review. people should learn by reading existing code. with just javascript, it's not that hard and stability is not critical. just note on how hard it is to submit a patch to linux kernel for instance :) |
btw. https://github.com/ctrlcctrlv/8chan/pull/20/files this code is really clean, @anonfagola . a code should be short, concise, just like this one. and in my opinion, we shouldn't fix pull requests ourselves, but tell our committers, what is wrong. this way they would learn. |
Uses options API now, $mrCheckie variable removed. Global variables removed hopefully. |
re code quality, we could use a linter, such as jshint |
…olons,added check to see if ctrl key is down with event.ctrlKey boolean when clicking on image
there are a few indentation problems
make it:
in order to make it l10nable
you can shorten it to:
|
…ble. changed how max browser height is calculated to include fixed boardlist
Thanks czaks I've followed your advice. I've also attempted to fix my indentation issues as well. |
Adds an option in general options tab to make inline expanded images to fit to your screen like 4chan's 'fit expanded images to screen' option