去掉微信公众号网页右侧的二维码悬浮框

Remove specified element

// ==UserScript==
// @name        去掉微信公众号网页右侧的二维码悬浮框
// @namespace    http://tampermonkey.net/
// @match       https://*/*
// @grant       none
// @version     1.2
// @author      Alex
// @license     MIT
// @icon        https://www.google.com/s2/favicons?domain=tampermonkey.net
// @description Remove specified element
// @license     Apache 2.0
// ==/UserScript==
 
(function() {
  'use strict';
 
  function removeElement() {
    let qrCodeDiv = document.querySelector('.qr_code_pc');
    if (qrCodeDiv) {
      qrCodeDiv.remove();
    }
  }
 
  new MutationObserver(removeElement).observe(document, {
    childList: true,
    subtree: true
  });
 
  removeElement();
 
})();