Skip to content

Instantly share code, notes, and snippets.

@Far-Se
Last active June 4, 2022 10:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
Photopea full width no ads no sidebar. Tampermonkey script for photopea sidebar with full width.
// ==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