Last active
June 4, 2022 10:24
-
-
Save Far-Se/3e8f23f8c0aee1bf983a58bd88cefd39 to your computer and use it in GitHub Desktop.
Photopea full width no ads no sidebar. Tampermonkey script for photopea sidebar with full width.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Photopea Full Width | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.photopea.com/ | |
// @icon https://icons.duckduckgo.com/ip2/photopea.com.ico | |
// @grant none | |
// @run-at document-end | |
// ==/UserScript== | |
setTimeout(()=>{ | |
(window.location.href.at(-1) === '?') || (document.body.outerHTML=`<iframe width="${document.documentElement.clientWidth}" height="${document.documentElement.clientHeight}" src="/?">`); | |
},100); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment