Fixed cases of submit pages being detected as linklist.

If the submit URL conained parameters like ?selftext=true
the regex would fail and the page would be classified as a
linklist. The primary side effect was to prevent the
character counter from appearing.

Signed-off-by: Scott McClaugherty <gamefreak4321@gmail.com>
Stripped out the old comment preview module and put in skeletons for the separated version.

Signed-off-by: Scott McClaugherty <gamefreak4321@gmail.com>
Reimplemented minimal working editor buttons.

Editor is only added to submit pages.
Currently only the bold, italic, strikethrough, and superscript buttons are implemented.
Shortcuts are not done yet.

Signed-off-by: Scott McClaugherty <gamefreak4321@gmail.com>
Quick and easy gallery "n of m" display fix.

Gets rid of the 'niceLength' variable which never actually did anything and makes it so albums with less than 10 photos don't display an extra leading zero (which was the purpose of doing this).
Reimplemented link and line prefix macros.

All default macros except for reddiquette and ones found in the dropdown are reimplemented.

Signed-off-by: Scott McClaugherty <gamefreak4321@gmail.com>
Made the comment tools work on most comment forms.
Pass a parameter containing the clicked button to the callback.
Re-added reddiquette and promote buttons.
Reimplemented comment preview.
Add debouncing to the preview.
Readded the big editor.
Fix the big editor button being duplicated.
Fixed mistargeted previews.
Add back the view source button.
Add data migration for the old commentPreview settings
Fixes for several ways that the previous commit was badly broken
Fix for dupe/missing videoTimes/videoUploaded

Duplicate IDs are prevented by piping them into an object rather than an
array. Introduced a loop to ensure that multiple Youtube URLs on the
same page all get tagged, not just the last instance.
Night mode tweaks

Comment navigator background/close button background/hover
Night mode - standardize quotes

Replace the remainder of the double quotes with singles.
Night mode - restore zeroed right margin

I removed this in error for 4.2.0