Emoji on all pages

Insert Emoji into css on all pages

目前为 2020-12-19 提交的版本,查看 最新版本

// ==UserScript==
// @name           Emoji on all pages
// @name:ru           Эмодзи на всех страницах
// @description    Insert Emoji into css on all pages
// @description:ru    Вставляет эмодзи (смайлы) в css на всех страницах
// @version        1.0
// @match          *://*/*
// @require        https://code.jquery.com/jquery-3.5.1.min.js
// @grant          none
// @namespace https://greasyfork.org/users/718526
// ==/UserScript==
 
this.$ = this.jQuery = jQuery.noConflict(true);
 
$("div").css("font-family", function(index,currentValue){
  if (currentValue.match(/Noto Color Emoji/i)) {
    return;
  } else if (typeof currentValue == 'undefined') {
    return "sans-serif,noto color emoji";
  } else {
    return currentValue + ',sans-serif,noto color emoji,apple color emoji,segoe ui emoji,android emoji,emojisymbols,emojione mozilla,twemoji mozilla,twitter color emoji,segoe ui symbol';
  }
});