NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Beach Cam Cleanup // @namespace http://tampermonkey.net/ // @version 0.1 // @description clean-up jibbrish from surf stream site and prevent constant refreshes // @author mcawesomept // @match https://surftotal.com/camaras-report/* // @match https://surftotal.com/camaras-report/minho/moledo // @match https://surftotal.com/camaras-report/grande-porto-douro-litoral/azurara // @icon https://www.google.com/s2/favicons?domain=surftotal.com // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; var styles = ` body { background-color:#000; } .fullbackground, .camaraArea .innercam { background:none; } .bannertopf, .t3-sidebar, #t3-header, #t3-mainnav, .topbar, #t3-footer, #k2Container > div+div+div, .gotop, a.framecam, div.sponsor { display:none; } #t3-content, .camaraArea .innercam { margin:0; padding:0; } #t3-mainbody { background:transparent none; } .span9 { /*width:100%;*/ } .t3-mainbody { padding:0; } #t3-mainbody { margin:0; /*width:100%;*/ } `; console.log("azurara beach cam user script loaded"); var styleSheet = document.createElement("style") styleSheet.type = "text/css" styleSheet.innerText = styles document.head.appendChild(styleSheet) //prevent refresh /* according to https://www.epochconverter.com/ the stream is allowed for 4 minutes the page refreshes every 90 seconds the page needs to refresh since the video plugin is not able to fetch another token */ //window.onbeforeunload = function() { return undefined; } //window.onbeforeunload = function() { return ''; } })();