pervert-monkey 1.0.23 → 1.0.25
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 -2
- package/dist/core/pervertmonkey.core.es.js +6 -5
- package/dist/core/pervertmonkey.core.es.js.map +1 -1
- package/dist/core/pervertmonkey.core.umd.js +6 -5
- package/dist/core/pervertmonkey.core.umd.js.map +1 -1
- package/dist/userscripts/3hentai.user.js +5 -5
- package/dist/userscripts/camgirlfinder.user.js +5 -5
- package/dist/userscripts/camwhores.user.js +5 -5
- package/dist/userscripts/e-hentai.user.js +5 -5
- package/dist/userscripts/ebalka.user.js +5 -5
- package/dist/userscripts/eporner.user.js +5 -5
- package/dist/userscripts/erome.user.js +5 -5
- package/dist/userscripts/eroprofile.user.js +5 -5
- package/dist/userscripts/javhdporn.user.js +5 -5
- package/dist/userscripts/missav.user.js +5 -5
- package/dist/userscripts/motherless.user.js +18 -13
- package/dist/userscripts/namethatporn.user.js +5 -5
- package/dist/userscripts/nhentai.user.js +5 -5
- package/dist/userscripts/obmenvsem.user.js +5 -5
- package/dist/userscripts/pornhub.user.js +5 -5
- package/dist/userscripts/simpcity.user.js +41 -0
- package/dist/userscripts/socialmediagirls copy.user.js +41 -0
- package/dist/userscripts/socialmediagirls.user.js +9 -11
- package/dist/userscripts/spankbang.user.js +5 -5
- package/dist/userscripts/thisvid.user.js +5 -5
- package/dist/userscripts/xhamster.user.js +5 -5
- package/dist/userscripts/xvideos.user.js +5 -5
- package/package.json +1 -1
- package/src/core/parsers/pagination-parser/index.ts +0 -2
- package/src/core/parsers/pagination-parser/pagination-strategies/PaginationStrategyPathnameParams.ts +4 -2
- package/src/core/parsers/thumb-data-parser.ts +7 -3
- package/src/userscripts/index.ts +1 -1
- package/src/userscripts/meta.json +3 -4
- package/src/userscripts/scripts/3hentai.ts +1 -1
- package/src/userscripts/scripts/camgirlfinder.ts +1 -1
- package/src/userscripts/scripts/camwhores.ts +1 -1
- package/src/userscripts/scripts/e-hentai.ts +1 -1
- package/src/userscripts/scripts/ebalka.ts +1 -1
- package/src/userscripts/scripts/eporner.ts +1 -1
- package/src/userscripts/scripts/erome.ts +1 -1
- package/src/userscripts/scripts/eroprofile.ts +1 -1
- package/src/userscripts/scripts/javhdporn.ts +1 -1
- package/src/userscripts/scripts/missav.ts +1 -1
- package/src/userscripts/scripts/motherless.ts +15 -19
- package/src/userscripts/scripts/namethatporn.ts +1 -1
- package/src/userscripts/scripts/nhentai.ts +1 -1
- package/src/userscripts/scripts/obmenvsem.ts +1 -1
- package/src/userscripts/scripts/pornhub.ts +1 -1
- package/src/userscripts/scripts/simpcity.ts +27 -0
- package/src/userscripts/scripts/socialmediagirls copy.ts +27 -0
- package/src/userscripts/scripts/spankbang.ts +1 -1
- package/src/userscripts/scripts/thisvid.ts +1 -1
- package/src/userscripts/scripts/xhamster.ts +1 -1
- package/src/userscripts/scripts/xvideos.ts +1 -1
|
@@ -467,14 +467,15 @@ export declare class ThumbDataParser {
|
|
|
467
467
|
strategy: 'manual' | 'auto-select' | 'auto-text';
|
|
468
468
|
selectors: ThumbDataSelectorsRaw;
|
|
469
469
|
callback?: ((thumb: HTMLElement, thumbData: ThumbData) => void) | undefined;
|
|
470
|
+
getUrlSelector: string;
|
|
470
471
|
private autoParseText;
|
|
471
472
|
getUrl(thumb: HTMLElement | HTMLAnchorElement): string;
|
|
472
473
|
private preprocessCustomThumbDataSelectors;
|
|
473
474
|
private thumbDataSelectors;
|
|
474
475
|
private readonly defaultThumbDataSelectors;
|
|
475
476
|
private getThumbDataWith;
|
|
476
|
-
constructor(strategy?: 'manual' | 'auto-select' | 'auto-text', selectors?: ThumbDataSelectorsRaw, callback?: ((thumb: HTMLElement, thumbData: ThumbData) => void) | undefined);
|
|
477
|
-
static create(o?: Partial<Pick<ThumbDataParser, 'strategy' | 'selectors' | 'callback'>>): ThumbDataParser;
|
|
477
|
+
constructor(strategy?: 'manual' | 'auto-select' | 'auto-text', selectors?: ThumbDataSelectorsRaw, callback?: ((thumb: HTMLElement, thumbData: ThumbData) => void) | undefined, getUrlSelector?: string);
|
|
478
|
+
static create(o?: Partial<Pick<ThumbDataParser, 'strategy' | 'selectors' | 'callback' | 'getUrlSelector'>>): ThumbDataParser;
|
|
478
479
|
getThumbData(thumb: HTMLElement): ThumbData;
|
|
479
480
|
}
|
|
480
481
|
|
|
@@ -2964,9 +2964,9 @@ class PaginationStrategyPathnameParams extends PaginationStrategy {
|
|
|
2964
2964
|
}
|
|
2965
2965
|
getPaginationUrlGenerator(url_ = this.url) {
|
|
2966
2966
|
const url = new URL(url_.href);
|
|
2967
|
-
const pathnameSelectorPlaceholder = this.pathnameSelector.toString().replace(/[
|
|
2967
|
+
const pathnameSelectorPlaceholder = this.pathnameSelector.toString().replace(/\\{1,}/g, "").replace(/[$?()]+/g, "").replace(/\/{1,}/g, "/");
|
|
2968
2968
|
if (!this.pathnameSelector.test(url.pathname)) {
|
|
2969
|
-
url.pathname = url.pathname.concat(pathnameSelectorPlaceholder.replace(/d\+/, this.offsetMin.toString())).replace(/\/{
|
|
2969
|
+
url.pathname = url.pathname.concat(pathnameSelectorPlaceholder.replace(/d\+/, this.offsetMin.toString())).replace(/\/{1,}/g, "/");
|
|
2970
2970
|
}
|
|
2971
2971
|
const paginationUrlGenerator = (offset) => {
|
|
2972
2972
|
url.pathname = url.pathname.replace(
|
|
@@ -3058,7 +3058,7 @@ function getPaginationStrategy(options) {
|
|
|
3058
3058
|
return paginationStrategy;
|
|
3059
3059
|
}
|
|
3060
3060
|
class ThumbDataParser {
|
|
3061
|
-
constructor(strategy = "manual", selectors = {}, callback) {
|
|
3061
|
+
constructor(strategy = "manual", selectors = {}, callback, getUrlSelector = "a[href]") {
|
|
3062
3062
|
__publicField(this, "thumbDataSelectors", []);
|
|
3063
3063
|
__publicField(this, "defaultThumbDataSelectors", [
|
|
3064
3064
|
{ name: "title", type: "string", selector: "[class *= title],[title]" },
|
|
@@ -3073,6 +3073,7 @@ class ThumbDataParser {
|
|
|
3073
3073
|
this.strategy = strategy;
|
|
3074
3074
|
this.selectors = selectors;
|
|
3075
3075
|
this.callback = callback;
|
|
3076
|
+
this.getUrlSelector = getUrlSelector;
|
|
3076
3077
|
this.preprocessCustomThumbDataSelectors();
|
|
3077
3078
|
}
|
|
3078
3079
|
autoParseText(thumb) {
|
|
@@ -3084,7 +3085,7 @@ class ThumbDataParser {
|
|
|
3084
3085
|
return { title, duration };
|
|
3085
3086
|
}
|
|
3086
3087
|
getUrl(thumb) {
|
|
3087
|
-
return querySelectorOrSelf(thumb,
|
|
3088
|
+
return querySelectorOrSelf(thumb, this.getUrlSelector).href;
|
|
3088
3089
|
}
|
|
3089
3090
|
preprocessCustomThumbDataSelectors() {
|
|
3090
3091
|
if (!this.selectors) return;
|
|
@@ -3120,7 +3121,7 @@ class ThumbDataParser {
|
|
|
3120
3121
|
return Number.parseInt(querySelectorText(thumb, selector));
|
|
3121
3122
|
}
|
|
3122
3123
|
static create(o = {}) {
|
|
3123
|
-
return new ThumbDataParser(o.strategy, o.selectors, o.callback);
|
|
3124
|
+
return new ThumbDataParser(o.strategy, o.selectors, o.callback, o.getUrlSelector);
|
|
3124
3125
|
}
|
|
3125
3126
|
getThumbData(thumb) {
|
|
3126
3127
|
var _a3;
|