Remove Ticktick upgrade button

try to take over the world!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Remove Ticktick upgrade button
// @namespace    http://tampermonkey.net/
// @version      0.3
// @description  try to take over the world!
// @author       You

// @match        https://*.ticktick.com/
// @match        https://ticktick.com/
// @grant        none
// ==/UserScript==


function waitForElement(elementId, callBack){
  window.setTimeout(function(){
    var element = document.getElementById(elementId);
    if(element){
      callBack(elementId, element);
    }else{
      waitForElement(elementId, callBack);
    }
  },500)
}
waitForElement("left-bottom-view",function(){
    var left_bottom = document.getElementById('left-bottom-view');
    //left_bottom.parentNode.removeChild(left_bottom);
    //document.getElementById("project-list-view").style.paddingBottom = "0";
    var upgrade = document.getElementById('upgrade-button');
    upgrade.parentNode.removeChild(upgrade);

});