🐭️ MouseHunt - No Share Buttons

Remove the "Share" buttons that prompt you to share on Facebook.

目前为 2023-04-09 提交的版本。查看 最新版本

// ==UserScript==
// @name         🐭️ MouseHunt - No Share Buttons
// @version      1.1.1
// @description  Remove the "Share" buttons that prompt you to share on Facebook.
// @license      MIT
// @author       bradp
// @namespace    bradp
// @match        https://www.mousehuntgame.com/*
// @icon         https://i.mouse.rip/mouse.png
// @grant        none
// @run-at       document-end
// ==/UserScript==
((function () {
  'use strict';

  const addStyles = document.createElement('style');
  addStyles.innerHTML = `.actionportfolio,
  .canShare .larryTip,
  .canShare,
  .journalactions a[data-share-type="journal"],
  .journalactions a[data-type="journal"],
  .pageSidebarView .fb-page,
  .socialLink,
  *[src="https://www.mousehuntgame.com//images/ui/buttons/share_green.gif"],
  #jsDialog-publishToOwnWall,
  .publishToWall,
  .socialBallots {
    display: none;
  }

  #OnboardArrow.onboardPopup.canShare .closeButton {
    left: 0;
  }
  `;
  document.head.appendChild(addStyles);
})());