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 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==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
  });
})();