VRPorn.com QOL

Automatically expands scene information drop down on vrporn.com. Applies scene sorting by newest as default to all URLs under vrporn.com.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         VRPorn.com QOL
// @description  Automatically expands scene information drop down on vrporn.com. Applies scene sorting by newest as default to all URLs under vrporn.com.
// @version      2025-08-06
// @author       ‘Google “Google ‘Google User’ User” User’
// @match        https://vrporn.com/*
// @icon         http://vrporn.com/favicon.ico
// @grant        none
// @namespace https://greasyfork.org/users/1367889
// ==/UserScript==


function show_more() {
    const sm = document.querySelector('.showmore');
    if (sm) {
        sm.click();
    }
}

function append_sort_newest() {
    const els = document.getElementsByTagName('a');

    for (let url of els) {
        if (url.href.indexOf('sort=') !== -1) continue;

        if (url.href.includes('new/') || url.href.includes('tag/') || url.href.includes('all/') || url.href.includes('studio/') || url.href.includes('pornstar/')) {
            if (url.href.indexOf('?') === -1) {
                url.href = url.href + "?sort=newest";
            } else {
                url.href = url.href + "&sort=newest";
            }
        }
    }
}



window.addEventListener('load', function() {
    setTimeout(append_sort_newest, 1000);
}, false);


window.addEventListener('load', function() {
    setTimeout(show_more, 100);
}, false);