{"id":5613,"date":"2021-07-16T17:18:54","date_gmt":"2021-07-16T12:18:54","guid":{"rendered":"https:\/\/webplover.com\/hosting\/?p=5613"},"modified":"2022-03-16T11:56:17","modified_gmt":"2022-03-16T06:56:17","slug":"remove-photopea-ads-sidebar","status":"publish","type":"post","link":"https:\/\/webplover.com\/hosting\/remove-photopea-ads-sidebar\/","title":{"rendered":"How to Remove Photopea Ads Sidebar and Make it Full Width"},"content":{"rendered":"\n<p>In this article, I will share a trick to remove advertisement banners and the sidebar containing ads completely from <a href=\"https:\/\/www.photopea.com\/\">photopea.com<\/a>, a web-based solution to to edit your photos in real time like <a href=\"https:\/\/www.adobe.com\/products\/photoshop.html\">Photoshop<\/a>.<\/p>\n\n\n\n<p>In short, you will be able to use <a href=\"https:\/\/www.photopea.com\/\">photopea.com<\/a> without ads sidebar with full-width edit screen experience<\/p>\n\n\n\n<p>We will use this trick and implement it on these three major web browsers:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li><strong>Google Chrome<\/strong><\/li><li><strong>Microsoft Edge<\/strong><\/li><li><strong>Mozilla Firefox<\/strong><\/li><\/ol>\n\n\n\n<p><em>Let&#8217;s get started\u2026<\/em><\/p>\n\n\n\n<h2 class=\"h2-note wp-block-heading\"><strong>Google Chrome &amp; Microsoft Edge<\/strong><\/h2>\n\n\n\n<p><strong>Step 1 :<\/strong>  Go to <a href=\"https:\/\/www.photopea.com\/\">photopea.com<\/a> right click and select inspect<\/p>\n\n\n\n<p><br><strong>Step 2:<\/strong> Go to <em><strong>Sources<\/strong><\/em> \u279c <em><strong>Snippets<\/strong><\/em> \u279c create a <em><strong>New snippet<\/strong><\/em> and name it photopea (You can name it anything)<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"713\" height=\"336\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/chrome_and_edge_devtools.jpg\" alt=\"\" class=\"wp-image-5621\" srcset=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/chrome_and_edge_devtools.jpg 713w, https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/chrome_and_edge_devtools-300x141.jpg 300w, https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/chrome_and_edge_devtools-600x283.jpg 600w\" sizes=\"auto, (max-width: 713px) 100vw, 713px\" \/><\/figure>\n\n\n\n<p><br><strong>Step 3<\/strong>: Copy this code snippet and paste it over there and sava the snippet using <kbd>CTRL + S<\/kbd> (in windows) or <kbd>Command + S<\/kbd> (in Mac)<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>document.head.insertAdjacentHTML(\n  \"beforeend\",\n  \"&lt;style>.app > :first-child,.panelblock.mainblock{flex: 1 !important}body > div.flexrow.app > div:nth-child(1) > div:nth-child(3){width:100% !important}&lt;\/style>\"\n);\n\ndocument.querySelector(\".app > :last-child\").remove();\n\nconst hk_canvas_body = document.querySelector(\n  \".panelblock.mainblock > .block > .body\"\n);\n\nconst hk_panelhead = document.querySelector(\".panelblock.mainblock .panelhead\");\n\nconst hk_canvas = document.querySelector(\".panelblock.mainblock .pbody canvas\");\n\nfunction hk_photopea() {\n  hk_canvas_body.style.width = \"100%\";\n  hk_canvas.style.width = \"100%\";\n  hk_panelhead.style.maxWidth = \"100%\";\n}\n\nhk_photopea();\n\nnew MutationObserver((x) => {\n  for (let y of x) {\n    if (y.type === \"attributes\") {\n      hk_photopea();\n    }\n  }\n}).observe(hk_canvas_body, {\n  attributes: true,\n});<\/code><\/pre>\n\n\n\n<p><strong>Step 4:<\/strong> Right click on your snippet and click on <strong>Run<\/strong>. Boom, that&#8217;s all.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><br><strong><em>Note:<\/em><\/strong> Your snippet will save in your browser but you will have to re-run it every time you refresh your current browser window.<\/p><\/blockquote>\n\n\n\n<h2 class=\"h2-note wp-block-heading\">Mozilla Firefox<\/h2>\n\n\n\n<p><strong>Step 1 :<\/strong>  Go to <a href=\"https:\/\/www.photopea.com\/\">photopea.com<\/a> right click and select inspect<\/p>\n\n\n\n<p><br><strong>Step 2:<\/strong> Go to <em><strong>Console<\/strong><\/em> click on book icon to switch to multi line editor<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"878\" height=\"352\" src=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/firefox_dev_tools.jpg\" alt=\"\" class=\"wp-image-5622\" srcset=\"https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/firefox_dev_tools.jpg 878w, https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/firefox_dev_tools-300x120.jpg 300w, https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/firefox_dev_tools-768x308.jpg 768w, https:\/\/webplover.com\/hosting\/wp-content\/uploads\/2021\/07\/firefox_dev_tools-600x241.jpg 600w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/figure>\n\n\n\n<p><br><strong>Step 3<\/strong>: Copy this code snippet and paste it over there, then click on <strong>Run<\/strong> <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>document.head.insertAdjacentHTML(\n  \"beforeend\",\n  \"&lt;style>.app > :first-child,.panelblock.mainblock{flex: 1 !important}body > div.flexrow.app > div:nth-child(1) > div:nth-child(3){width:100% !important}&lt;\/style>\"\n);\n\ndocument.querySelector(\".app > :last-child\").remove();\n\nconst hk_canvas_body = document.querySelector(\n  \".panelblock.mainblock > .block > .body\"\n);\n\nconst hk_panelhead = document.querySelector(\".panelblock.mainblock .panelhead\");\n\nconst hk_canvas = document.querySelector(\".panelblock.mainblock .pbody canvas\");\n\nfunction hk_photopea() {\n  hk_canvas_body.style.width = \"100%\";\n  hk_canvas.style.width = \"100%\";\n  hk_panelhead.style.maxWidth = \"100%\";\n}\n\nhk_photopea();\n\nnew MutationObserver((x) => {\n  for (let y of x) {\n    if (y.type === \"attributes\") {\n      hk_photopea();\n    }\n  }\n}).observe(hk_canvas_body, {\n  attributes: true,\n});<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p><strong><em>Note:<\/em><\/strong> Unlike Google Chrome and Microsoft Edge, there is no option in Mozilla Firefox to save your snippet and use it later. So you will have to paste this code every time you refresh your page.<\/p><\/blockquote>\n\n\n\n<p><strong>Watch out this video tutorial to have a visual grasp on the topic\u2026<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Remove Photopea Editor Ads Sidebar Completely Like Premium\" width=\"720\" height=\"405\" src=\"https:\/\/www.youtube.com\/embed\/YIDbOv5mVNo?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>In this article, I will share a trick to remove advertisement banners and the sidebar containing ads completely from photopea.com, a web-based solution to to edit your photos in real time like Photoshop. In short, you will be able to use photopea.com without ads sidebar with full-width edit screen experience We will use this trick&#8230;<\/p>\n","protected":false},"author":220,"featured_media":5628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[1],"tags":[254,252,251,253,255,256],"class_list":["post-5613","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-best-free-photo-editor","tag-cloud-photo-editor","tag-online-photoshop-free","tag-photopea-without-ads-free","tag-photoshop-in-browser","tag-web-base-photo-editor"],"acf":[],"_links":{"self":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/5613","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/users\/220"}],"replies":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/comments?post=5613"}],"version-history":[{"count":0,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/posts\/5613\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media\/5628"}],"wp:attachment":[{"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/media?parent=5613"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/categories?post=5613"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webplover.com\/hosting\/wp-json\/wp\/v2\/tags?post=5613"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}