28 Commits

Author SHA1 Message Date
HandyRandyx
131a9e3884
[Hot Cards] Add missing popstate event listener (#451) 2024-10-05 04:20:51 +03:00
HandyRandyx
890a30e2bf Bump version 2024-10-03 21:42:06 -03:00
HandyRandyx
0b2548cae6 Rename movie to group
Updates the definition in all files and adds the subgroups path to the group pattern.
2024-10-03 21:34:12 -03:00
HandyRandyx
e6eead60e0 Move variable to configurationHandler 2024-10-03 20:59:19 -03:00
HandyRandyx
912a27a58a Avoid duplication of hot cards on the homepage
To prevent duplication of elements when the user clicks/reloads a section multiple times we add 'activeHotCardTypes' to track for each card type on the homepage, and for every other section only one card type will be active.

- 'backupImgElements' and 'holoElements' arrays were added to restore the img nodes and avoid duplication of the holo effect on cards.
- Renamed variables for consistency and improve meaning.
2024-10-03 20:36:35 -03:00
HandyRandyx
0861cd506b Simplify handleHomeHotCards function 2024-10-02 20:46:43 -03:00
HandyRandyx
d14320c47d Refactor homepage logic for consistent hot card loading
Previous solution was not consistent.
2024-10-02 19:47:43 -03:00
HandyRandyx
fee92e7c38 Remove 3 sec delay from homepage
Logic replaced by a mutation observer to check if all recommendation rows for the same card type have their slider initialized.
2024-09-09 21:47:23 -03:00
HandyRandyx
807420ad39 Minor fix 2024-09-09 21:29:43 -03:00
HandyRandyx
2a0976ef1a Update docs 2024-09-07 19:55:31 -03:00
HandyRandyx
606b87b2c2 Reorganize configuration/settings related code and simplify hotCards.js
Refreshing is no longer needed if the user updates his plugin configuration.

- Reorganize code
- Move configuration/settings related code to configuartionHandler.js
- Move registerPathChangeListener function to helpers.js
- Add function to update configuration if user comes from /settings page
2024-09-07 18:25:24 -03:00
HandyRandyx
875c6d1932 Improve hover non-animation 2024-08-05 06:06:10 -03:00
HandyRandyx
4a03a05c17 Move createElementFromHTML to helpers.js 2024-08-02 03:35:09 -03:00
HandyRandyx
d55fc05c3e
[Hot Cards] Fix element duplication and missing homepage holo effect (#383) 2024-08-02 09:13:10 +03:00
HandyRandyx
a5df45ba48
[Hot Cards] Fix Holo style to work with any type of card (#376) 2024-07-30 06:32:09 +03:00
HandyRandyx
62cb8ecb3f
[Hot Cards] Replace CDNs with local files (#374) 2024-07-30 06:27:29 +03:00
HandyRandyx
fc8e718519
[Hot Cards] Add utility files and update CDNs (#373) 2024-07-26 15:24:13 +03:00
HandyRandyx
11042b31ed
[Hot Cards] Add Holo style preset and fix display on mobile (#371) 2024-07-24 19:18:32 +03:00
HandyRandyx
ccd6312087
[Hot Cards] Fix some incorrectly handled field formats (#366) 2024-07-20 10:16:18 +03:00
HandyRandyx
a129689479
[Hot Cards] Add multi-tag and multi-style support (#362) 2024-07-16 19:40:56 +03:00
HandyRandyx
e1a1106841
[Hot Cards] Add card_opts as new optional parameter (#357)
card_opts allows you to specify whether you want the card to be filled or not, and also set the opacity of the card.

Other changes:
- Adjust README to include the new option and other additions.
- Change misleading param name 'border_opts' to 'hover_opts' in the docs, code and in the configuration file.
- Update version to 1.1.2.
2024-07-07 15:03:02 +03:00
HandyRandyx
9e3f6ae052
[Hot Cards] Improve README for clearer text and some code enhancements (#356)
* Fix data is undefined error

The error wasn't breaking anything, but it was unnecesary for it to happen.

* Add flexibility to also modify style presets

The gradient angle and animation, as well as the border color and border animation of the style presets can now be modified using the field format.

* Update README with images and enhancements

* Update version

* Update README
2024-07-05 14:19:27 +03:00
HandyRandyx
a52ba76c6b
[Hot Cards] Customizable Hot Cards (#355)
* Fix inconsistent height of hot cards in the home page

* Refactor CSS

* Rename classes for clarity

- hot-border -> hot-card
- hot-card -> hot-border

* Add support for 0-5 rating threshold alongside 0-100 range

* Improve configuration strings

* Add missed fallback

* Add customizable Hot Cards

- Allow users to specify Hot Cards to use tag-based or rating-based for each card type.
- Introduce a new custom string format for more flexible and detailed customization.
- Update README with detailed instructions, and examples.
2024-07-04 10:55:14 +03:00
DogmaDragon
6164a3158a
[hotCards] Clarify setting description 2024-06-29 00:20:21 +03:00
HandyRandyx
52a596f275 Fix regex typo 2024-06-28 05:36:58 -03:00
feederbox826
f63a366836
[hotcards] add ?. fallbacks and clean regex, fix dependency chain (#349)
* [hotcards] add ?. fallbacks and clean regex, fix dependency chain

- use ?. to not fail when loading from `{}`
- use Object.values instead of Object.entries
- clean up regex with repeating patterns
- use pathname to pre-strip parameters
- move css to bottom, to ensure depencies load first

* prettier

---------

Co-authored-by: feederbox826 <feederbox826@users.noreply.github.com>
2024-06-28 05:53:00 +03:00
HandyRandyx
60ba922162
[hotCards] Fix csLib is not defined (#348) 2024-06-28 03:39:27 +03:00
HandyRandyx
fc9b56b502 Add Hot Cards plugin (#346)
* Add Hot Cards plugin

* Format code using prettier

Add Pornhub inspired theme (#347)

Format

Update theme order

Update theme order
2024-06-27 14:58:58 +03:00