Skip to content

Commit 1ed88f3

Browse files
committed
Update
1 parent 09bf126 commit 1ed88f3

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

improve-adult-experience.user.js

Lines changed: 2 additions & 2 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, 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, рус-порно.tv
44
// @icon https://external-content.duckduckgo.com/ip3/pornhub.com.ico
5-
// @version 0.59
5+
// @version 0.60
66
// @downloadURL https://userscripts.codonaft.com/improve-adult-experience.user.js
77
// @grant GM_addStyle
88
// ==/UserScript==
@@ -1603,7 +1603,7 @@ const sites = {
16031603
qualitySelector: 'span.video-hd-mark, span.video-sd-mark',
16041604
durationSelector: 'span.duration',
16051605
isUnwantedQuality: text => (parseFloat(text.split('p')[0]) || 0) < MIN_VIDEO_HEIGHT,
1606-
isUnwantedDuration: text => !text.includes('h') && parseFloat(text.split(' min')[0] || 0) < MIN_DURATION_MINS,
1606+
isUnwantedDuration: text => text.includes(' sec') || (!text.includes('h') && parseFloat(text.split(' min')[0] || 0) < MIN_DURATION_MINS),
16071607
isVideoUrl: href => new URL(href).pathname.startsWith('/video.'),
16081608
hideSelector: 'a.premium, button.comments span.badge, div[style*="color: rgb(255, 255, 255)"][style*="text-align: center"], div.banner-slider, div.p-red, div.quickies-lat, div.premium-results-line, ul.search-premium-tabs',
16091609
nodeChangeSelector: `${defaultArgs.nodeChangeSelector}, strong`,

improve-privacy.user.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
// ==UserScript==
22
// @name Improve Privacy
3-
// @version 0.17
3+
// @version 0.18
44
// @downloadURL https://userscripts.codonaft.com/improve-privacy.user.js
55
// ==/UserScript==
66

77
(_ => {
88
'use strict';
99

10+
const h = window.location.hostname;
1011
const hiddenNodes = 'div[role="contentinfo"], div#gws-output-pages-elements-homepage_additional_languages__als, div#voice-search-button, span.style-scope.ytd-topbar-logo-renderer';
1112
const links = '[href]';
1213

@@ -24,6 +25,16 @@ const cleanup = node => {
2425
const href = node.href;
2526
if (!href) return true;
2627

28+
if (h === 'tagpacker.com' && !node.closest?.('ul.nav')) {
29+
node.addEventListener('click', _ => {
30+
if (!event.isTrusted) return;
31+
event.preventDefault();
32+
event.stopImmediatePropagation();
33+
window.location = href;
34+
}, true);
35+
return;
36+
}
37+
2738
const youtube = href.startsWith?.('https://www.youtube.com/watch?') || href.startsWith?.('https://youtu.be/');
2839
const maps = href.startsWith?.('https://maps.app.goo.gl/');
2940
if (!youtube && !maps) return true;
@@ -76,7 +87,6 @@ const subscribeOnChanges = (node, selector, f) => {
7687

7788
subscribeOnChanges(document.body, `${links}, ${hiddenNodes}`, (node, _observer) => {
7889
try {
79-
const h = window.location.hostname;
8090
if (['youtube.com', 'youtu.be', 'google.com'].find(i => h.endsWith(i)) && node.matches(hiddenNodes)) {
8191
node.style.display = 'none';
8292
return false;

0 commit comments

Comments
 (0)