billy-herrington-utils 2.0.4 → 2.0.6
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 +12 -7
- package/dist/billy-herrington-utils.es.js.map +1 -1
- package/dist/billy-herrington-utils.umd.js +12 -7
- 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 +15 -6
|
@@ -6092,10 +6092,10 @@ Expected function or array of functions, received type ${typeof e}.`
|
|
|
6092
6092
|
e,
|
|
6093
6093
|
Lu
|
|
6094
6094
|
), r = [...t, ...o];
|
|
6095
|
-
return
|
|
6095
|
+
return r;
|
|
6096
6096
|
}
|
|
6097
6097
|
class RulesGlobal {
|
|
6098
|
-
constructor() {
|
|
6098
|
+
constructor(options) {
|
|
6099
6099
|
__publicField(this, "delay");
|
|
6100
6100
|
__publicField(this, "alternativeGenerator");
|
|
6101
6101
|
__publicField(this, "titleSelector");
|
|
@@ -6112,7 +6112,7 @@ Expected function or array of functions, received type ${typeof e}.`
|
|
|
6112
6112
|
__publicField(this, "thumbsSelector", ".thumb");
|
|
6113
6113
|
__publicField(this, "getThumbsStrategy", "default");
|
|
6114
6114
|
__publicField(this, "paginationStrategyOptions", {});
|
|
6115
|
-
__publicField(this, "paginationStrategy"
|
|
6115
|
+
__publicField(this, "paginationStrategy");
|
|
6116
6116
|
__publicField(this, "mutationObservers", []);
|
|
6117
6117
|
__publicField(this, "resetOnPaginationOrContainerDeath", true);
|
|
6118
6118
|
__publicField(this, "customSelectors", {});
|
|
@@ -6120,12 +6120,17 @@ Expected function or array of functions, received type ${typeof e}.`
|
|
|
6120
6120
|
__publicField(this, "storeOptions");
|
|
6121
6121
|
__publicField(this, "customScheme");
|
|
6122
6122
|
__publicField(this, "defaultSchemeOptions", []);
|
|
6123
|
-
__publicField(this, "store"
|
|
6124
|
-
__publicField(this, "
|
|
6125
|
-
__publicField(this, "
|
|
6126
|
-
__publicField(this, "dataManager", new DataManager(this, this.store.state));
|
|
6123
|
+
__publicField(this, "store");
|
|
6124
|
+
__publicField(this, "gui");
|
|
6125
|
+
__publicField(this, "dataManager");
|
|
6127
6126
|
__publicField(this, "infiniteScroller");
|
|
6128
6127
|
__publicField(this, "initialGrope");
|
|
6128
|
+
Object.assign(this, options);
|
|
6129
|
+
this.paginationStrategy = getPaginationStrategy(this.paginationStrategyOptions);
|
|
6130
|
+
this.store = new js(this.storeOptions);
|
|
6131
|
+
const scheme = Hu(this.defaultSchemeOptions, this.customScheme);
|
|
6132
|
+
this.gui = new ju(scheme, this.store);
|
|
6133
|
+
this.dataManager = new DataManager(this, this.store.state);
|
|
6129
6134
|
this.store.subscribe(() => this.dataManager.applyFilters());
|
|
6130
6135
|
this.resetInfiniteScroller();
|
|
6131
6136
|
this.resetOn();
|