Created
September 15, 2019 14:18
-
-
Save huwcbjones/6afb06aee8734e2f4f3c40794c5e1386 to your computer and use it in GitHub Desktop.
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 TalkTalk Webmail Fixer | |
// @namespace https://gist.github.com/huwcbjones/6afb06aee8734e2f4f3c40794c5e1386 | |
// @version 0.1 | |
// @description Fix webmail view on talktalk | |
// @author huwcbjones | |
// @match *://apps.talktalk.co.uk/* | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
window.setTimeout( function() { | |
let rightSideBar = document.getElementsByClassName("io-ox-ads-skyscraper right")[0]; | |
let mainWindow = document.getElementsByClassName("window-body classic-toolbar-visible")[0]; | |
if (rightSideBar !== undefined) rightSideBar.remove(); | |
if (mainWindow !== undefined) { | |
mainWindow.style.setProperty("bottom", 0, "important") | |
} | |
}, 4500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment