pervert-monkey 1.0.12 → 1.0.13
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/core/pervertmonkey.core.es.d.ts +3 -1
- package/dist/core/pervertmonkey.core.es.js +19 -1
- package/dist/core/pervertmonkey.core.es.js.map +1 -1
- package/dist/core/pervertmonkey.core.umd.js +19 -1
- package/dist/core/pervertmonkey.core.umd.js.map +1 -1
- package/dist/userscripts/3hentai.user.js +1 -1
- package/dist/userscripts/camgirlfinder.user.js +1 -1
- package/dist/userscripts/camwhores.user.js +1 -1
- package/dist/userscripts/e-hentai.user.js +1 -1
- package/dist/userscripts/ebalka.user.js +1 -1
- package/dist/userscripts/eporner.user.js +1 -1
- package/dist/userscripts/erome.user.js +1 -1
- package/dist/userscripts/eroprofile.user.js +1 -1
- package/dist/userscripts/javhdporn.user.js +1 -1
- package/dist/userscripts/missav.user.js +1 -1
- package/dist/userscripts/motherless.user.js +4 -3
- package/dist/userscripts/namethatporn.user.js +1 -1
- package/dist/userscripts/nhentai.user.js +1 -1
- package/dist/userscripts/obmenvsem.user.js +1 -1
- package/dist/userscripts/pornhub.user.js +1 -1
- package/dist/userscripts/spankbang.user.js +1 -1
- package/dist/userscripts/thisvid.user.js +1 -1
- package/dist/userscripts/xhamster.user.js +5 -12
- package/dist/userscripts/xvideos.user.js +2 -2
- package/package.json +1 -1
- package/src/core/jabroni-config/jabroni-gui-controller.ts +1 -0
- package/src/core/parsers/thumb-data-parser.ts +6 -1
- package/src/userscripts/index.ts +1 -1
- package/src/userscripts/scripts/eroprofile.ts +2 -2
- package/src/userscripts/scripts/motherless.ts +2 -1
- package/src/userscripts/scripts/xhamster.ts +6 -4
- package/src/userscripts/scripts/xvideos.ts +1 -1
- package/src/utils/parsers/index.ts +16 -0
|
@@ -397,6 +397,18 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
397
397
|
const num = Number(n);
|
|
398
398
|
return Number.isSafeInteger(num) ? num : or2;
|
|
399
399
|
}
|
|
400
|
+
function parseNumberWithLetter(str) {
|
|
401
|
+
var _a3;
|
|
402
|
+
const multipliers = { k: 1e3, m: 1e6 };
|
|
403
|
+
const match = str.trim().match(/^([\d.]+)(\w)?$/);
|
|
404
|
+
if (!match) return 0;
|
|
405
|
+
const num = parseFloat(match[1]);
|
|
406
|
+
const suffix = (_a3 = match[2]) == null ? void 0 : _a3.toLowerCase();
|
|
407
|
+
if (suffix && suffix in multipliers) {
|
|
408
|
+
return num * multipliers[suffix];
|
|
409
|
+
}
|
|
410
|
+
return num;
|
|
411
|
+
}
|
|
400
412
|
function parseDataParams(str) {
|
|
401
413
|
const paramsStr = decodeURI(str.trim()).split(";");
|
|
402
414
|
return paramsStr.reduce(
|
|
@@ -3040,6 +3052,10 @@ var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "acce
|
|
|
3040
3052
|
if (type === "duration") {
|
|
3041
3053
|
return timeToSeconds(querySelectorText(thumb, selector));
|
|
3042
3054
|
}
|
|
3055
|
+
if (type === "float") {
|
|
3056
|
+
const value = querySelectorText(thumb, selector);
|
|
3057
|
+
return parseNumberWithLetter(value);
|
|
3058
|
+
}
|
|
3043
3059
|
return Number.parseInt(querySelectorText(thumb, selector));
|
|
3044
3060
|
}
|
|
3045
3061
|
static create(o = {}) {
|
|
@@ -9697,7 +9713,8 @@ Expected function or array of functions, received type ${typeof t}.`
|
|
|
9697
9713
|
__publicField(this, "destroy$", new Subject());
|
|
9698
9714
|
__publicField(this, "directionalEventObservable$");
|
|
9699
9715
|
__publicField(this, "eventsMap", {
|
|
9700
|
-
"sort by duration": (direction) => this.dataManager.sortBy("duration", direction)
|
|
9716
|
+
"sort by duration": (direction) => this.dataManager.sortBy("duration", direction),
|
|
9717
|
+
"sort by views": (direction) => this.dataManager.sortBy("views", direction)
|
|
9701
9718
|
});
|
|
9702
9719
|
this.store = store;
|
|
9703
9720
|
this.dataManager = dataManager;
|
|
@@ -9898,6 +9915,7 @@ Expected function or array of functions, received type ${typeof t}.`
|
|
|
9898
9915
|
exports2.parseDataParams = parseDataParams;
|
|
9899
9916
|
exports2.parseHtml = parseHtml;
|
|
9900
9917
|
exports2.parseIntegerOr = parseIntegerOr;
|
|
9918
|
+
exports2.parseNumberWithLetter = parseNumberWithLetter;
|
|
9901
9919
|
exports2.parseUrl = parseUrl;
|
|
9902
9920
|
exports2.querySelectorLast = querySelectorLast;
|
|
9903
9921
|
exports2.querySelectorLastNumber = querySelectorLastNumber;
|