[#1] imgur.com niedostępny z UK
Chciałbym zwrócić uwagę że obrazki jak i cały serwis imgur.com są od 30 września 2025 blokowane w UK.
Przez co wszystko co załączone za pośrednictwem tego serwisu jest niedostępne dla nieboraków takich jak ja w tym wspaniałym kraju.

https://help.imgur.com/hc/en-us/articles/41592665292443-Imgur-access-in-the-United-Kingdom

Żeby sobie jakoś poradzić używam duckduckgo ale jest to trochę upierdliwe, bo muszę za każdym razem wkleić https://proxy.duckduckgo.com/iu/?u=
i zaraz za tym adres obrazka z PPA, może dałoby się to jakoś zautomatyzować z poziomu forum, czy byłoby to pogwałcenie jakichś przepisów co może spowodować
kłopoty dla samego PPA?

Ostatnia aktualizacja: 17.12.2025 13:09:14 przez Ferin
[#2] Re: imgur.com niedostępny z UK

@Ferin, post #1

Pogadaj z kimś z jakiegoś innego kraju totalitarnego, jak sobie z tym radzą.
3
[#3] Re: imgur.com niedostępny z UK

@Ferin, post #1

Ja używałem też serwisu img.bb ale po jakimś czasie obrazki znikają z serwera.
[#4] Re: imgur.com niedostępny z UK

@Ferin, post #1

napisz sobie skrypt do greasemonkey lub tampermonkey, żeby Ci podmieniał, z AI to 10 minut roboty.
[#5] Re: imgur.com niedostępny z UK

@Mirq, post #4

SI napisało mi takie coś dla przeglądarki Brave:
(function() {
    'use strict';
    const proxyPrefix = "proxy.duckduckgo.com";

    const proxyImages = () => {
        // Find all images hosted on imgur.com
        const images = document.querySelectorAll('img[src*="imgur.com"]');
        images.forEach(img => {
            // Check if it's already proxied to avoid infinite loops and if img src is a full URL
            if (img.src.includes('imgur.com') && !img.src.startsWith(proxyPrefix)) {
                console.log('Proxying imgur image:', img.src); // Debugging
                img.src = proxyPrefix + encodeURIComponent(img.src);
                // Remove srcset to force the browser to use the new 'src' value
                if (img.srcset) {
                    img.removeAttribute('srcset');
                }
            }
        });
    };

    // Run immediately
    proxyImages();
    
    // Periodically re-run to catch lazy-loaded images (every 1.5 seconds)
    setInterval(proxyImages, 1500);

    // Also use MutationObserver for robust detection of new elements
    const observer = new MutationObserver((mutations) => {
        mutations.forEach(mutation => {
            mutation.addedNodes.forEach(node => {
                if (node.nodeType === Node.ELEMENT_NODE) {
                    if (node.tagName === 'IMG') proxyImages(); // Check newly added image itself
                    node.querySelectorAll?.('img[src*="imgur.com"]').forEach(proxyImages); // Check images within added nodes
                }
            });
        });
    });

    observer.observe(document.body, { childList: true, subtree: true });

})();


Po przejściu wszystkich kroków niestety nie pomogło.
Według SI:
Open the Developer Tools (press F12) and check the Console tab. You should see "Proxying imgur image..." messages if the script is working.
If images still do not appear, it's likely that the website ppa.pl is enforcing a strict Content Security Policy (CSP) that explicitly blocks connections to https://proxy.duckduckgo.com. In that case, the only reliable solution is to use a VPN service to bypass the UK's ISP-level blocking of Imgur.

Sprawdziłem i w konsoli nie wyświetla się żaden komunikat o tym że skrypt działa, w związku z czym zastanawiam się czy na PPA jest w mocy Content Security Policy czy ja coś źle zrobiłem, czy może skrypt jest źle napisany?

Ostatnia aktualizacja: 17.12.2025 14:35:31 przez Ferin
[#6] Re: imgur.com niedostępny z UK

@Ferin, post #1

Świetna propozycja, pisałeś do administracji?
[#7] Re: imgur.com niedostępny z UK

@koczis, post #6

Nie bezpośrednio, napisałem tu, czym więcej ludzi widzi tym weselej
1
[#8] Re: imgur.com niedostępny z UK

@Ferin, post #7

Na komputerze można poruszać się za pomocą przeglądarki "Tor Browser" by móc udawać, że jest się z innego mniej totalitarnego kraju.
[#9] Re: imgur.com niedostępny z UK

@Ferin, post #1

Masz moje pelne poparcie.
1
[#10] Re: imgur.com niedostępny z UK

@Ferin, post #1

Ja używam postimages.org i jestem bardzo zadowolony.
[#11] Re: imgur.com niedostępny z UK

@Ferin, post #5

źle napisany skrypt.
[#12] Re: imgur.com niedostępny z UK

@Ferin, post #1

Dzięki za ten patent. Lepsze to niż nic. :)
[#13] Re: imgur.com niedostępny z UK

@Mirq, post #11

// ==UserScript==
// @name         Imgur Proxy for PPA.pl
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  Proxy imgur. com images through DuckDuckGo on ppa.pl
// @author       mirq
// @match        https://ppa.pl/*
// @match        https://www.ppa.pl/*
// @grant        none
// @run-at       document-start
// ==/UserScript==

(function() {
    'use strict';
    
    const proxyPrefix = "https://proxy.duckduckgo.com/iu/?u=";

    const proxyImages = () => {
        // Find all images hosted on imgur.com
        const images = document.querySelectorAll('img[src*="imgur.com"]');
        images.forEach(img => {
            // Check if it's already proxied to avoid infinite loops
            if (img.src. includes('imgur.com') && !img.src.includes('proxy. duckduckgo. com')) {
                console.log('Proxying imgur image:', img.src); // Debugging
                const encodedUrl = encodeURIComponent(img.src);
                img.src = proxyPrefix + encodedUrl;
                // Remove srcset to force the browser to use the new 'src' value
                if (img.srcset) {
                    img.removeAttribute('srcset');
                }
            }
        });
    };

    // Wait for DOM to be ready
    if (document. readyState === 'loading') {
        document. addEventListener('DOMContentLoaded', proxyImages);
    } else {
        proxyImages();
    }
    
    // Periodically re-run to catch lazy-loaded images (every 1.5 seconds)
    setInterval(proxyImages, 1500);

    // Also use MutationObserver for robust detection of new elements
    const observer = new MutationObserver((mutations) => {
        mutations.forEach(mutation => {
            mutation.addedNodes.forEach(node => {
                if (node.nodeType === Node.ELEMENT_NODE) {
                    if (node.tagName === 'IMG' && node.src?. includes('imgur.com')) {
                        proxyImages(); // Check newly added image itself
                    }
                    if (node.querySelectorAll) {
                        const imgurImages = node.querySelectorAll('img[src*="imgur.com"]');
                        if (imgurImages.length > 0) {
                            proxyImages(); // Check images within added nodes
                        }
                    }
                }
            });
        });
    });

    // Start observing once body is available
    const startObserver = () => {
        if (document. body) {
            observer.observe(document.body, { childList: true, subtree: true });
        } else {
            setTimeout(startObserver, 100);
        }
    };
    
    startObserver();

})();


poprawiony skrypt, wystarczyło precyzyjnie powiedzieć co potrzeba.
Na stronie www.PPA.pl, podobnie jak na wielu innych stronach internetowych, wykorzystywane są tzw. cookies (ciasteczka). Służą ona m.in. do tego, aby zalogować się na swoje konto, czy brać udział w ankietach. Ze względu na nowe regulacje prawne jesteśmy zobowiązani do poinformowania Cię o tym w wyraźniejszy niż dotychczas sposób. Dalsze korzystanie z naszej strony bez zmiany ustawień przeglądarki internetowej będzie oznaczać, że zgadzasz się na ich wykorzystywanie.
OK, rozumiem