pervert-monkey 1.0.0
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/LICENSE +21 -0
- package/README.md +62 -0
- package/dist/core/pervertmonkey.core.es.d.ts +391 -0
- package/dist/core/pervertmonkey.core.es.js +8497 -0
- package/dist/core/pervertmonkey.core.es.js.map +1 -0
- package/dist/core/pervertmonkey.core.umd.js +8500 -0
- package/dist/core/pervertmonkey.core.umd.js.map +1 -0
- package/dist/userscripts/3hentai.user.js +1176 -0
- package/dist/userscripts/camgirlfinder.user.js +68 -0
- package/dist/userscripts/camwhores.user.js +1602 -0
- package/dist/userscripts/e-hentai.user.js +1212 -0
- package/dist/userscripts/ebalka.user.js +1231 -0
- package/dist/userscripts/eporner.user.js +1265 -0
- package/dist/userscripts/erome.user.js +1245 -0
- package/dist/userscripts/eroprofile.user.js +1194 -0
- package/dist/userscripts/javhdporn.user.js +1178 -0
- package/dist/userscripts/missav.user.js +1182 -0
- package/dist/userscripts/motherless.user.js +1380 -0
- package/dist/userscripts/namethatporn.user.js +1218 -0
- package/dist/userscripts/nhentai.user.js +1262 -0
- package/dist/userscripts/pornhub.user.js +1199 -0
- package/dist/userscripts/spankbang.user.js +1239 -0
- package/dist/userscripts/xhamster.user.js +1374 -0
- package/dist/userscripts/xvideos.user.js +1254 -0
- package/package.json +54 -0
- package/src/core/data-control/data-filter.ts +143 -0
- package/src/core/data-control/data-manager.ts +144 -0
- package/src/core/data-control/index.ts +2 -0
- package/src/core/infinite-scroll/index.ts +143 -0
- package/src/core/jabroni-config/default-scheme.ts +97 -0
- package/src/core/jabroni-config/default-store.ts +9 -0
- package/src/core/pagination-parsing/index.ts +55 -0
- package/src/core/pagination-parsing/pagination-strategies/PaginationStrategy.ts +44 -0
- package/src/core/pagination-parsing/pagination-strategies/PaginationStrategyDataParams.ts +66 -0
- package/src/core/pagination-parsing/pagination-strategies/PaginationStrategyPathnameParams.ts +77 -0
- package/src/core/pagination-parsing/pagination-strategies/PaginationStrategySearchParams.ts +56 -0
- package/src/core/pagination-parsing/pagination-strategies/index.ts +4 -0
- package/src/core/pagination-parsing/pagination-utils/index.ts +84 -0
- package/src/core/rules/index.ts +385 -0
- package/src/index.ts +42 -0
- package/src/types/index.ts +7 -0
- package/src/userscripts/ascii-logos.js +468 -0
- package/src/userscripts/index.ts +1 -0
- package/src/userscripts/meta.json +11 -0
- package/src/userscripts/scripts/3hentai.ts +20 -0
- package/src/userscripts/scripts/camgirlfinder.ts +68 -0
- package/src/userscripts/scripts/camwhores.ts +382 -0
- package/src/userscripts/scripts/e-hentai.ts +68 -0
- package/src/userscripts/scripts/ebalka.ts +58 -0
- package/src/userscripts/scripts/eporner.ts +90 -0
- package/src/userscripts/scripts/erome.ts +105 -0
- package/src/userscripts/scripts/eroprofile.ts +38 -0
- package/src/userscripts/scripts/javhdporn.ts +24 -0
- package/src/userscripts/scripts/missav.ts +28 -0
- package/src/userscripts/scripts/motherless.ts +222 -0
- package/src/userscripts/scripts/namethatporn.ts +68 -0
- package/src/userscripts/scripts/nhentai.ts +135 -0
- package/src/userscripts/scripts/pornhub.ts +53 -0
- package/src/userscripts/scripts/spankbang.ts +61 -0
- package/src/userscripts/scripts/thisvid.ts +716 -0
- package/src/userscripts/scripts/xhamster.ts +179 -0
- package/src/userscripts/scripts/xvideos.ts +83 -0
- package/src/utils/arrays/index.ts +15 -0
- package/src/utils/async/index.ts +3 -0
- package/src/utils/dom/dom-observers.ts +76 -0
- package/src/utils/dom/index.ts +156 -0
- package/src/utils/events/index.ts +2 -0
- package/src/utils/events/on-pointer-over-and-leave.ts +35 -0
- package/src/utils/events/tick.ts +27 -0
- package/src/utils/fetch/index.ts +37 -0
- package/src/utils/math/index.ts +3 -0
- package/src/utils/objects/index.ts +9 -0
- package/src/utils/objects/memoize.ts +25 -0
- package/src/utils/observers/index.ts +44 -0
- package/src/utils/observers/lazy-image-loader.ts +27 -0
- package/src/utils/parsers/index.ts +30 -0
- package/src/utils/parsers/time-parser.ts +28 -0
- package/src/utils/strings/index.ts +10 -0
- package/src/utils/strings/regexes.ts +35 -0
- package/src/vite-env.d.ts +4 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { MonkeyUserScript } from 'vite-plugin-monkey';
|
|
2
|
+
import { RulesGlobal } from '../../core/rules';
|
|
3
|
+
import { exterminateVideo, parseHtml } from '../../utils/dom';
|
|
4
|
+
import { onPointerOverAndLeave } from '../../utils/events';
|
|
5
|
+
|
|
6
|
+
export const meta: MonkeyUserScript = {
|
|
7
|
+
name: 'SpankBang.com PervertMonkey',
|
|
8
|
+
version: '4.0.0',
|
|
9
|
+
description: 'Infinite scroll [optional]. Filter by Title and Duration',
|
|
10
|
+
match: ["https://*.spankbang.*/*", "https://*.spankbang.com/*"],
|
|
11
|
+
icon: 'https://www.google.com/s2/favicons?sz=64&domain=spankbang.com',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const rules = new RulesGlobal({
|
|
15
|
+
containerSelector: '.main-container .js-media-list, .main_content_container .video-list',
|
|
16
|
+
paginationStrategyOptions: {
|
|
17
|
+
paginationSelector: '.paginate-bar, .pagination',
|
|
18
|
+
},
|
|
19
|
+
thumbsSelector: '.video-item:not(.clear-fix), .js-video-item',
|
|
20
|
+
getThumbImgDataStrategy: 'auto',
|
|
21
|
+
titleSelector: '[title]',
|
|
22
|
+
durationSelector: '[data-testid="video-item-length"]',
|
|
23
|
+
gropeStrategy: 'all-in-all',
|
|
24
|
+
schemeOptions: ['Text Filter', 'Duration Filter', 'Badge', 'Advanced'],
|
|
25
|
+
animatePreview,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
function animatePreview(container: HTMLElement) {
|
|
29
|
+
function createPreviewElement(src: string) {
|
|
30
|
+
return parseHtml(`
|
|
31
|
+
<div class="video-js vjs-controls-disabled vjs-workinghover vjs-v7 vjs-playing vjs-has-started mp4t_video-dimensions vjs-user-inactive"
|
|
32
|
+
id="mp4t_video" tabindex="-1" lang="en" translate="no" role="region" aria-label="Video Player"
|
|
33
|
+
style="opacity: 1;">
|
|
34
|
+
<video id="mp4t_video_html5_api" class="vjs-tech" tabindex="-1" autoplay="autoplay" muted="muted" playsinline="playsinline"
|
|
35
|
+
src="${src}">
|
|
36
|
+
</video>
|
|
37
|
+
</div>`);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function animateThumb(e: HTMLElement) {
|
|
41
|
+
const src = e.querySelector('[data-preview]')?.getAttribute('data-preview') as string;
|
|
42
|
+
const vid = createPreviewElement(src);
|
|
43
|
+
e.append(vid);
|
|
44
|
+
return () => {
|
|
45
|
+
const v = vid.querySelector('video') as HTMLVideoElement;
|
|
46
|
+
exterminateVideo(v);
|
|
47
|
+
vid.remove();
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
onPointerOverAndLeave(
|
|
52
|
+
container,
|
|
53
|
+
(e) => e.tagName === 'IMG',
|
|
54
|
+
(e) => {
|
|
55
|
+
const target = e as HTMLImageElement;
|
|
56
|
+
const leaveTarget = target.closest('.thumb') as HTMLElement;
|
|
57
|
+
const onOverCallback = animateThumb(leaveTarget);
|
|
58
|
+
return { leaveTarget, onOverCallback };
|
|
59
|
+
},
|
|
60
|
+
);
|
|
61
|
+
}
|