View all visitor on CakeResume insight page

Unlock part of premium functions on https://www.cakeresume.com/. Including view all visitors and messages form them

目前为 2022-08-23 提交的版本。查看 最新版本

// ==UserScript==
// @name            View all visitor on CakeResume insight page
// @name:zh-tw      CakeResume誰造訪了我的個人檔案
// @namespace       com.sherryyue.cakeresumeunlock
// @version         0.2
// @description     Unlock part of premium functions on https://www.cakeresume.com/. Including view all visitors and messages form them
// @description:zh-tw 解鎖部分高級功能:看見所有的訪客、查看未建立聯繫的公司傳來的完整訊息
// @author          SherryYue
// @match           *://*.cakeresume.com/*
// @contributionURL https://sherryyuechiu.github.io/card
// @supportURL      [email protected]
// @icon            https://sherryyuechiu.github.io/card/images/logo/maskable_icon_x96.png
// @grant           none
// ==/UserScript==

(function () {
  'use strict';
  // insight page
  const class1 = 'c-viewer-card-blur';
  const class2 = 'l-viewer-card-mask';
  // messages page & message popup
  const class3 = 'chat-connect-container';

  let errorBlockObserver = new MutationObserver((mutations, obs) => {
    const elm1 = document.querySelector(`.${class1}`);
    if (elm1) {
      document.querySelectorAll('.' + class1).forEach(elm => {
        elm.classList.remove(class1);
      });
    }
    const elm2 = document.querySelector(`.${class2}`);
    if (elm2) {
      document.querySelectorAll('.' + class2).forEach(elm => {
        elm.classList.remove(class2);
      });
    }
    const elm3 = document.querySelector(`.${class3}`);
    if (elm3) {
      document.querySelectorAll('.' + class3).forEach(elm => {
        elm.classList.remove(class3);
      });
    }
  });

  errorBlockObserver.observe(document.body, {
    childList: true,
    subtree: true
  });
})();