Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fishtank Fullscreen
- // @namespace Violentmonkey Scripts
- // @match *://*.fishtank.live/*
- // @grant none
- // @version 1.0
- // @author /tv/ anon
- // @description 4/25/2023, 3:26:12 PM
- // @require https://raw.githubusercontent.com/uzairfarooq/arrive/master/minified/arrive.min.js
- // ==/UserScript==
- document.arrive(".LiveStreamsControls_prev-next__pbktS", function(controls) {
- const fullScreenBtn = document.createElement("button");
- fullScreenBtn.className = "fullscreen-btn";
- const fullScreenIcon = document.createElement("div");
- fullScreenIcon.className = "Icon_icon__rliEl";
- const fullScreenSvg = `
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24px" height="24px">
- <path style="fill:currentcolor;" d="M 1.199219 1.199219 L 1.199219 8.398438 L 3.601562 8.398438 L 3.601562 3.601562 L 8.398438 3.601562 L 8.398438 1.199219 Z M 3.601562 15.601562 L 1.199219 15.601562 L 1.199219 22.800781 L 8.398438 22.800781 L 8.398438 20.398438 L 3.601562 20.398438 Z M 20.398438 20.398438 L 15.601562 20.398438 L 15.601562 22.800781 L 22.800781 22.800781 L 22.800781 15.601562 L 20.398438 15.601562 Z M 20.398438 1.199219 L 15.601562 1.199219 L 15.601562 3.601562 L 20.398438 3.601562 L 20.398438 8.398438 L 22.800781 8.398438 L 22.800781 1.199219 Z M 20.398438 1.199219 "/>
- </svg>
- `;
- fullScreenIcon.insertAdjacentHTML("afterbegin", fullScreenSvg);
- fullScreenBtn.appendChild(fullScreenIcon);
- controls.appendChild(fullScreenBtn);
- fullScreenBtn.onclick = () => document.querySelector(".LiveStreamsCloudflarePlayer_live-streams-player__OCZ2v iframe").requestFullscreen();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement