Skip to content

Commit a39e1b8

Browse files
committed
Update
1 parent 53ded09 commit a39e1b8

2 files changed

Lines changed: 24 additions & 13 deletions

File tree

bypass-various-popups.user.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name Bypass Various Popups
3-
// @version 0.26
3+
// @version 0.27
44
// @downloadURL https://userscripts.codonaft.com/bypass-various-popups.user.js
55
// @require https://userscripts.codonaft.com/utils.js
66
// @match https://*.archive.org/*
@@ -97,14 +97,12 @@ const process = (node, observer) => {
9797
return false;
9898
}
9999

100-
/*
101-
// FIXME redtube
102100
if (node.matches('div.age_disclaimer_window a#btn_agree') && node.textContent?.includes(' am 18 or older ')) {
103101
console.log('detected', node);
104102
observer.disconnect();
105-
node.click();
103+
setTimeout(_ => simulateMouse(document, node), random(900, 1200));
106104
return false;
107-
}*/
105+
}
108106

109107
if (node.matches('div#ageDisclaimerWrapper button#accessButton')) {
110108
observer.disconnect();
@@ -171,5 +169,5 @@ const process = (node, observer) => {
171169
return true;
172170
};
173171

174-
subscribeOnChanges(document.body, 'button, div, span', process);
172+
subscribeOnChanges(document.body, 'a, button, div, span', process);
175173
})();

improve-adult-experience.user.js

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
// @name Improve Adult Experience
33
// @description Skip intros, set better default quality/duration filters, make unwanted video previews transparent, workaround load failures, make input more consistent across the websites, remove spammy elements. Usually affects every media player it can find, designed to be used on a separate browser profile. Supported websites: anysex.com, beeg.com, bingato.com, drtuber.com, hqporner.com, hdzog.tube, hypnotube.com, incestporno.vip, inporn.com, manysex.com, mat6tube.com, pmvhaven.com, pmvtube.com, porn00.tv, pornheed.com, pornhits.com, pornhub.com, porno365.best, pornone.com, porntati.com, porntrex.com, pornxp.com, redtube.com, spankbang.com, taboodude.com, tnaflix.com, tube8.com, txxx.com, veporn.com, vxxx.com, whoreshub.com, xgroovy.com, xhamster.com, xnxx.com, xvideos.com, xxxbp.tv, youporn.com, рус-порно.tv
44
// @icon https://external-content.duckduckgo.com/ip3/pornhub.com.ico
5-
// @version 0.79
5+
// @version 0.80
66
// @downloadURL https://userscripts.codonaft.com/improve-adult-experience.user.js
77
// @require https://userscripts.codonaft.com/utils.js
88
// @grant GM_addStyle
99
// ==/UserScript==
1010

11-
// TODO: cumlouder.com, tubeon.com, xtits.xxx, eporner.com, pervclips.com, bigbumfun.com, momvids.com, zbporn.com, ok.xxx / perfectgirls.xxx, tubev.sex, youjizz.com, empflix.com, babestube.com, pornwhite.com, pornomira.net, videosection.com, upornia.com, free.brazzers.com, hdsex.org, gay0day.com, collectionofbestporn.com, pissjapantv.com, pervertslut.com, luxuretv.com, 4kporn.xxx, minuporno.com, prndb.net, familyporn.tv, anal.media, pornoclown.top / pornoclown.com
11+
// TODO: cumlouder.com, tubeon.com, xtits.xxx, eporner.com, pervclips.com, bigbumfun.com, momvids.com, zbporn.com, ok.xxx / perfectgirls.xxx, tubev.sex, youjizz.com, empflix.com, babestube.com, pornwhite.com, pornomira.net, videosection.com, upornia.com, free.brazzers.com, hdsex.org, gay0day.com, collectionofbestporn.com, pissjapantv.com, pervertslut.com, luxuretv.com, 4kporn.xxx, minuporno.com, prndb.net, familyporn.tv, pornoclown.top / pornoclown.com
1212

1313
(_ => {
1414
'use strict';
@@ -71,7 +71,7 @@ const parts = pathname => pathname.split('/').filter(i => i.length > 0);
7171
const FLUID_PLAYER = '#fluid_video_wrapper_player, div.fluid_button';
7272
const JW_PLAYER_SELECTOR = 'video.jw-video, video.js-player';
7373
const KT_PLAYER_SELECTOR = 'div#kt_player';
74-
const VJS_PLAYER_SELECTOR = 'video.vjs-tech[id*="player_html5_api"]';
74+
const VJS_PLAYER_SELECTOR = 'video.vjs-tech[id*="player_html5_api"], video.vjs-tech[id*="video-player"]';
7575

7676
const currentTime = _ => Math.round(Date.now() / 1000);
7777

@@ -155,6 +155,7 @@ const defaultArgs = {
155155
videoSelector: 'video',
156156
isUnwantedDuration: text => timeToSeconds(text) < MIN_DURATION_MINS * 60,
157157
nodeChangeSelector: 'a, button, div, input, li, span, video',
158+
refreshOnStalled: true,
158159
// TODO: isVideoUrl: true if there's more than one video and none of them have significant size difference
159160
};
160161

@@ -178,6 +179,7 @@ const init = (args = {}) => {
178179
isVideoUrl,
179180
hideSelector,
180181
nodeChangeSelector,
182+
refreshOnStalled,
181183
onPlaybackStart,
182184
onNodeChange,
183185
} = { ...defaultArgs, ...args };
@@ -449,10 +451,12 @@ const init = (args = {}) => {
449451
}, 700);
450452
}, { once: true });
451453

452-
video.addEventListener('stalled', _ => {
453-
console.log('stalled');
454-
refresh();
455-
}, { once: true });
454+
if (refreshOnStalled) {
455+
video.addEventListener('stalled', _ => {
456+
console.log('stalled');
457+
refresh();
458+
}, { once: true });
459+
}
456460

457461
const mouseMove = event => {
458462
if (!event.isTrusted) return;
@@ -564,6 +568,15 @@ const sites = {
564568
'1porno365.info': p365,
565569
'porno365.best': p365,
566570

571+
'anal.media': _ => {
572+
init({
573+
thumbnailSelector: 'div.thumb',
574+
durationSelector: 'div.video-info',
575+
isVideoUrl: href => href.includes('/video/'),
576+
refreshOnStalled: false,
577+
});
578+
},
579+
567580
'anysex.com': _ => {
568581
const searchFilterParams = { sort: 'top' };
569582
const isVideoUrl = href => href.includes('/video/');

0 commit comments

Comments
 (0)