Camwhores

Show full sizes image on https://www.camwhores.tv/

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला 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         Camwhores
    // @version      1.0.1
    // @description  Show full sizes image on https://www.camwhores.tv/
    // @match        https://www.camwhores.tv/*
    // @match        https://www.camwhores.video/*
    // @require      http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
    // @grant        GM_addStyle
    // @namespace https://greasyfork.org/users/1291978
    // ==/UserScript==
     
     
    var $ = unsafeWindow.jQuery;
     
    function sleep(milliseconds) {
        const date = Date.now();
        let currentDate = null;
        do {
            currentDate = Date.now();
        } while (currentDate - date < milliseconds);
    }
     
    $(function () {
        $('.table').remove();
     
        const regex = /videos_screenshots\/(\d*)\/(\d*)/gm;
        var finded = null;
        //do {
        try{
            var new_thumbs = [];
            var private_url = '';
            var thumbs = $(".block-screenshots").find('img');
            try{
                private_url = $(thumbs[0]).data('original');
            } catch (err){
                private_url = thumbs[0].src;
            }
            console.log(private_url);
            finded = regex.exec(private_url);
            new_thumbs.push('https://cdn.camwhores.tv/contents/videos_sources/'+finded[1]+'/'+finded[2]+'/screenshots/1.jpg')
            new_thumbs.push('https://cdn.camwhores.tv/contents/videos_sources/'+finded[1]+'/'+finded[2]+'/screenshots/2.jpg')
            new_thumbs.push('https://cdn.camwhores.tv/contents/videos_sources/'+finded[1]+'/'+finded[2]+'/screenshots/3.jpg')
            new_thumbs.push('https://cdn.camwhores.tv/contents/videos_sources/'+finded[1]+'/'+finded[2]+'/screenshots/4.jpg')
            new_thumbs.push('https://cdn.camwhores.tv/contents/videos_sources/'+finded[1]+'/'+finded[2]+'/screenshots/5.jpg')
            console.log(new_thumbs);
            $(".block-screenshots").html('');
            $.each( new_thumbs , function( key, value ) {
                $(".block-screenshots").append('<a href="'+value+'" class="item" rel="screenshots" data-fancybox-type="image"><img class="thumb lazy-load" src="'+value+'" width="180" height="135" style="display: inline;"></a>')
            });
        } catch (err){
        }
     
        //} while (finded === null);
    });
     
     
    GM_addStyle(`
        .block-video .no-player img {
            opacity: 1;
        }
    `);