Skip to content

Commit 8de74f2

Browse files
committed
Update
1 parent 0364e09 commit 8de74f2

File tree

1 file changed

+6
-20
lines changed

1 file changed

+6
-20
lines changed

improve-adult-experience.user.js

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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, porn00.tv, pornhits.com, pornhub.com, porno365.best, pornone.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.68
5+
// @version 0.69
66
// @downloadURL https://userscripts.codonaft.com/improve-adult-experience.user.js
77
// @grant GM_addStyle
88
// ==/UserScript==
@@ -884,17 +884,15 @@ const sites = {
884884

885885
'pmvhaven.com': _ => {
886886
const isVideoUrl = href => href.includes('/video/');
887-
let sortDetected = false;
888-
const clicked = new Set;
889887
init({
890888
searchInputSelector: 'input[type="text"]',
891-
searchFilter: query => [`search/${encodeURIComponent(query)}`, {}],
889+
searchFilter: q => ['search', { q }],
892890
videoSelector: 'video#VideoPlayer',
893891
thumbnailSelector: 'a[href*="/video/"]',
894-
qualitySelector: 'p',
895-
durationSelector: 'p',
892+
qualitySelector: 'div:not([title^="Aspect ratio:"]):not(.aspect-video)',
893+
durationSelector: 'div:not([title^="Aspect ratio:"]):not(.aspect-video)',
896894
isUnwantedDuration: text => text.includes(':') && timeToSeconds(text) < MIN_DURATION_MINS * 60,
897-
isUnwantedQuality: text => text.endsWith('p') && parseFloat(text.split('p')[0]) < MIN_VIDEO_HEIGHT,
895+
isUnwantedQuality: text => (text.includes('HD') && !text.includes('FHD')) || text.includes('SD'),
898896
isVideoUrl,
899897
hideSelector: '.v-badge',
900898
nodeChangeSelector: `${defaultArgs.nodeChangeSelector}, button[aria-haspopup="menu"], p`,
@@ -903,19 +901,7 @@ const sites = {
903901
updateUrl(node, node.href);
904902
return;
905903
}
906-
907-
if (!sortDetected && node.matches('button.filter-btn') && ['Newest', 'Relevance'].includes(node.textContent.trim())) {
908-
sortDetected = true;
909-
node.click();
910-
setTimeout(_ => [...body.querySelectorAll('button.filter-btn')].find(i => i.textContent.trim() === 'Quality')?.click(), 1000);
911-
}
912-
913-
if (node.matches('div.v-list-item-title')) {
914-
const content = node.textContent.trim();
915-
if (clicked.has(content) || !['1080p', 'Longest'].includes(content)) return;
916-
clicked.add(content);
917-
node.click();
918-
}
904+
// TODO: set filters
919905
},
920906
});
921907
},

0 commit comments

Comments
 (0)