cleanPhotopea

clean Photopea side bar ads

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         cleanPhotopea
// @namespace    http://tampermonkey.net/
// @version      0.22
// @description  clean Photopea side bar ads
// @author       [email protected]
// @match        https://www.photopea.com/*
// @grant        none
// @run-at       document-body
// @license      MIT
// ==/UserScript==

(function(){
    'use strict';
    window.innerWidth += 310;
    var rules = [
        '.flexrow.app>div>div:nth-child(2){width: 100vw!important;}',
        '.flexrow.app .panelblock.mainblock{width: 100%!important;}',
        '.panelblock.mainblock .block .panelhead{width: 100%!important; max-width: 100%!important;}',
        '.panelblock.mainblock .block .panelhead+div{width: 100%!important;max-width: 100%!important;}',
        '.flexrow .panelblock.mainblock .block .panelhead+div .intro{left: unset!important; display: block!important; margin: 0 auto;}',
        '.flexrow.app div.cmanager+div{width:100vw!important;}',
        '.flexrow.app div.cmanager+div >div{width: 100vw;}',
        '.flexrow.app div.cmanager+div >div:first-child{display:none;}',
        '.flexrow.app .flexrow .sbar.toolbar{margin-right: 2px;}',
    ].join('');
    var style = document.createElement('style');
    style.innerText = rules;
    document.getElementsByTagName('head')[0].appendChild(style);
})();