Rahul-RB / Remove JIRA upgrade announcement banner

/* Install TamperMonkey
 * Click on extension, create new script
 * Copy paste the script from line 6 till end.
 * Enjoy!
 */

// ==UserScript==
// @name         Remove JIRA upgrade announcement banner
// @namespace    https://github.com/Rahul-RB
// @version      0.0.5
// @description  Remove the annoying JIRA upgrade announcement banner
// @author       Rahul R Bharadwaj
// @match        https://jira.corp.zscaler.com/*
// @grant        none
// @license      MIT
// @copyright    2020, Rahul-RB (https://openuserjs.org/users/Rahul-RB)
// ==/UserScript==

window.addEventListener('load', function() {
    'use strict';
    document.getElementById("announcement-banner").remove();
    window.dispatchEvent(new Event('resize'));
    document.getElementsByClassName("aui-item search-wrap")[0].style["width"]="100%";
}, false);