no-emoji icon indicating copy to clipboard operation
no-emoji copied to clipboard

Support for title tag

Open glitsj16 opened this issue 2 years ago • 0 comments

Really nice extension! I wonder if it's possible to filter out emoji from the web page's title too. So more of a feature request/enhancement.

Example URL: https://www.omgubuntu.co.uk/2022/05/firefox-100-available-to-download

For now I use the below greasemonkey user.js script to do this but it would be nice to have it integrated into no-emoji.

// ==UserScript==
// @name    Title :: NoEmoji
// @description    Remove emoji from page title.
// @include    *
// @run-at    document-start
// @grant    none
// ==/UserScript==

(function() {

    const reg = /\p{Emoji_Presentation}/ug;
    var title_str = document.title;
    var res = title_str.replace(reg, "");
    document.title = res;

})();

glitsj16 avatar May 03 '22 14:05 glitsj16