Skip to content

Instantly share code, notes, and snippets.

@Eotones
Created February 19, 2021 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Eotones/1bcb4fcb09693b6fa01f68db8b7e7e18 to your computer and use it in GitHub Desktop.
Save Eotones/1bcb4fcb09693b6fa01f68db8b7e7e18 to your computer and use it in GitHub Desktop.
meta-theme-color
// ==UserScript==
// @name meta-theme-color
// @namespace http://tampermonkey.net/
// @version 0.1
// @description add meta theme color
// @author Eotones
// @match https://term.ptt.cc/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
let meta = document.createElement('meta');
meta.name = 'theme-color';
meta.setAttribute('content', '#333333');
document.querySelector('head').appendChild(meta);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment