Lazza / Pinterest without registration

// ==UserScript==
// @name            Pinterest without registration
// @name:it         Pinterest senza registrazione
// @namespace       http://andrealazzarotto.com/
// @description     Browse Pinterest without login/registration
// @description:it  Naviga su Pinterest senza accedere o registrarti
// @version         2.3.3
// @include         http://*.pinterest.com/*
// @include         https://*.pinterest.com/*
// @include         https://*.pinterest.*/*
// @copyright       2014+, Andrea Lazzarotto (https://openuserjs.org/users/Lazza)
// @require         https://cdnjs.cloudflare.com/ajax/libs/cash/8.1.0/cash.min.js
// @require         https://greasyfork.org/scripts/35383-gm-addstyle-polyfill/code/GMaddStyle%20Polyfill.js?version=231590
// @license         GPL-3.0-or-later
// @grant           GM_addStyle
// @updateURL       https://openuserjs.org/meta/Lazza/Pinterest_without_registration.meta.js
// @downloadURL     https://openuserjs.org/install/Lazza/Pinterest_without_registration.user.js
// ==/UserScript==
    
/* Greasemonkey 4 wrapper */
if (typeof GM !== "undefined" && !!GM.addStyle)
    GM_addStyle = GM.addStyle;
    
$(document).ready(function () {
    // We need to start from a page with a search bar
    if(location.pathname == "/")
        location.href = "https://www.pinterest.com/search/pins/?q=pin&rs=typed";
    
    GM_addStyle(`
    .UnauthBanner, body>.Modal, .ModalManager>.Modal, .Closeup__wrapper>div[style*='fixed'], iframe[src*=smartlock], div[data-test-id=signup] {
        display: none !important;
    }
    
    .noScroll {
        overflow: auto !important;
    }
    
    div[style*='cubic-bezier'], div[style*='fixed']>div[style*='opacity: 0.5'], div[style*='background-color: rgba(0, 0, 0, 0.6);'], .FullPageModal__scroller {
        display: none !important;
    }
    
    div.gridContainer>div, .Grid {
        height: auto !important;
    }
    
    :root body { overflow-y: auto !important; }
    `);
});