Ugoira "load sample first" support + Misc. fixes

* Updated to support the impending Danbooru change where ugoira's webm sample will be loaded first if the user has opted for samples over originals.
* Fixed a potential problem with the query portion for generated thumbnails where the query would end up set as "undefined".
* Fixed the random post hotkey for logged out users.
* Fixed an issue with wildcards and metatags by separating them from regular tags when creating a search.
* Fixed the detection of the notes search as a notes listing by making the match test more specific.
* Fixed post resizing for blacklisted posts that are hidden.
Thin ugoira slider fix

* Updated to mimic the slider changes in r888888888/danbooru@ab7d06cd30dde88953df1bd6865d5df1bebe3022 by placing a minimum width on the ugoira "panel" (350px) and "slider" (269px).
Ugoira note & swap updates + Favorites support

* Added support for the favorites listing.
* Added a "toggle notes" link to ugoira posts in order to allow note toggling on the webm samples.
* Added a "view sample" link to ugoira posts when viewing the original in order to allow "image" swapping.
* Allowed the viewing of notes without the ability to edit them on ugoira webm samples.
Version 6.5

* Made the swapImage function not work on ugoira posts when the swap hotkey ("v") is pressed.
* Added a test for the direct download links used with misc. files in the scrapePost function.
Misc. option updates for favorites

* Added "favorites" to the text of several of the options and allowed "favorites" as a choice for the autohide sidebar.
Version 6.5
Merge pull request #42 from pseudonymous/ugoira-sample-update

Version 6.5