Added a script for browservice to fix the scrollbars issue

This commit is contained in:
George Sokianos 2023-07-03 21:15:38 +01:00
parent 9ed8ca2d91
commit e1c55cc837
1 changed files with 33 additions and 0 deletions

33
browservice.js Normal file
View File

@ -0,0 +1,33 @@
// Browservice CSS fixes
// version 1.0
// 2023-07-03
// Copyright (c) 2023 Created by Georgios Sokianos
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// ==UserScript==
// @name Browservice CSS fixes
// @namespace none
// @description Fixes css in Browservice
// @include http://192.168.1.94/*
// @version $VER: Browservice CSS fixes 1.0 (08.02.2023)
// @url https://ko-fi.com/walkero
// ==/UserScript==
var css = ' \
img { width: auto; height: 99.995%; } \
';
var head = document.head || document.getElementsByTagName('head')[0],
style = document.createElement('style');
head.appendChild(style);
style.type = 'text/css';
if (style.styleSheet){
// This is required for IE8 and below.
style.styleSheet.cssText = css;
} else {
style.appendChild(document.createTextNode(css));
}