billy-herrington-utils 2.0.3 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/billy-herrington-utils.es.js +10 -6
- package/dist/billy-herrington-utils.es.js.map +1 -1
- package/dist/billy-herrington-utils.umd.js +10 -6
- package/dist/billy-herrington-utils.umd.js.map +1 -1
- package/dist/index.d.ts +1 -2
- package/package.json +1 -1
- package/src/userscripts/rules/index.ts +35 -27
|
@@ -6088,7 +6088,7 @@ function Hu(e, t = [], n) {
|
|
|
6088
6088
|
e,
|
|
6089
6089
|
Lu
|
|
6090
6090
|
), r = [...t, ...o];
|
|
6091
|
-
return
|
|
6091
|
+
return r;
|
|
6092
6092
|
}
|
|
6093
6093
|
class RulesGlobal {
|
|
6094
6094
|
constructor() {
|
|
@@ -6108,7 +6108,7 @@ class RulesGlobal {
|
|
|
6108
6108
|
__publicField(this, "thumbsSelector", ".thumb");
|
|
6109
6109
|
__publicField(this, "getThumbsStrategy", "default");
|
|
6110
6110
|
__publicField(this, "paginationStrategyOptions", {});
|
|
6111
|
-
__publicField(this, "paginationStrategy"
|
|
6111
|
+
__publicField(this, "paginationStrategy");
|
|
6112
6112
|
__publicField(this, "mutationObservers", []);
|
|
6113
6113
|
__publicField(this, "resetOnPaginationOrContainerDeath", true);
|
|
6114
6114
|
__publicField(this, "customSelectors", {});
|
|
@@ -6116,12 +6116,16 @@ class RulesGlobal {
|
|
|
6116
6116
|
__publicField(this, "storeOptions");
|
|
6117
6117
|
__publicField(this, "customScheme");
|
|
6118
6118
|
__publicField(this, "defaultSchemeOptions", []);
|
|
6119
|
-
__publicField(this, "store"
|
|
6120
|
-
__publicField(this, "
|
|
6121
|
-
__publicField(this, "
|
|
6122
|
-
__publicField(this, "dataManager", new DataManager(this, this.store.state));
|
|
6119
|
+
__publicField(this, "store");
|
|
6120
|
+
__publicField(this, "gui");
|
|
6121
|
+
__publicField(this, "dataManager");
|
|
6123
6122
|
__publicField(this, "infiniteScroller");
|
|
6124
6123
|
__publicField(this, "initialGrope");
|
|
6124
|
+
this.paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
|
|
6125
|
+
this.store = new js(this.storeOptions);
|
|
6126
|
+
const scheme = Hu(this.defaultSchemeOptions, this.customScheme);
|
|
6127
|
+
this.gui = new ju(scheme, this.store);
|
|
6128
|
+
this.dataManager = new DataManager(this, this.store.state);
|
|
6125
6129
|
this.store.subscribe(() => this.dataManager.applyFilters());
|
|
6126
6130
|
this.resetInfiniteScroller();
|
|
6127
6131
|
this.resetOn();
|