Fix wrong behavior when opening refine through JS & replace farFutureString() function by variable (#1387)
Fix wrong behavior when opening refine through JS & replace farFutureString() function by variable (#1387)

* Check if searchbox & category is empty instead of not equal

* Replace farFutureString() by variable

The function was getting executed multiple times which triggered the creation of a new variable and the call of multiple functions multiple times throughout the code, instead it's just executed at the very start of the code

* Fix date showing negative difference (-20 days old)

majestrate/nyaa,NyaaPantsu/nyaa,majestrate/nyaa,NyaaPantsu/nyaa,majestrate/nyaa,majestrate/nyaa,NyaaPantsu/nyaa,NyaaPantsu/nyaa