🌚 Dark Get Emoji

Dark mode for Get Emoji

目前為 2024-02-10 提交的版本,檢視 最新版本

// ==UserScript==
// @name           🌚 Dark Get Emoji
// @namespace      https://gf.qytechs.cn/pl/users/1081704-nameniok
// @version        1.0.1
// @author         Nameniok
// @description    Dark mode for Get Emoji
// @run-at         document-start
// @match          https://getemoji.com/
// @grant          none
// @license        MIT
// ==/UserScript==

function isMobileDevice() {
  const mobileIdentifiers = ['Android', 'webOS', 'iPhone', 'iPad', 'iPod', 'BlackBerry', 'Windows Phone', 'iemobile'];
  return mobileIdentifiers.some(identifier => navigator.userAgent.includes(identifier)) || (typeof window.orientation !== 'undefined');
}

function addStyles() {
  var style = document.createElement('style');
  style.innerHTML = `
    body {
      background-color: #111 !important;
      color: #ccc !important;
    }
    input {
      background-color: #333 !important;
      outline: none !important;
    }
    *::-webkit-scrollbar {
      width: 10px;
      height: 10px;
    }
    *::-webkit-scrollbar-track {
      background: transparent;
    }
    *::-webkit-scrollbar-thumb {
      background-color: #222;
      border-radius: 6px;
    }
    *::-webkit-scrollbar-thumb:hover {
      background-color: #333;
    }
    *::-webkit-scrollbar-corner {
      background-color: transparent;
    }
    * {
      scrollbar-width: thin;
      scrollbar-color: #222 transparent;
    }
    *:hover {
      scrollbar-color: #333 transparent;
    }
  `;
  document.head.appendChild(style);
}

if (!isMobileDevice()) {
    addStyles();
  } else {
  window.addEventListener('load', function() {
    addStyles();
  });
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址