Skip to content

Instantly share code, notes, and snippets.

@SyunWatanabe
Last active January 25, 2021 03:27
Show Gist options
  • Save SyunWatanabe/a41ecd3e3917be39c8fe8700c9093a4f to your computer and use it in GitHub Desktop.
Save SyunWatanabe/a41ecd3e3917be39c8fe8700c9093a4f to your computer and use it in GitHub Desktop.
show meta
// ==UserScript==
// @name show meta
// @namespace http://tampermonkey.net/
// @version 0.1
// @description show meta what we want
// @author me
// @match *://*/*
// @grant none
// ==/UserScript==
(function() {
var robots_production = document.getElementsByName('robots-production')[0].content;
var robots = document.getElementsByName('robots')[0].content;
var canonical = document.getElementsByTagName('link')[0].getAttribute('href');
var dummy_ele = document.createElement('div')
dummy_ele.id = "metatest";
dummy_ele.innerText = 'robots-production: ' + robots_production + '\n' + 'robots: ' + robots + '\n' + 'canonical: ' + canonical
dummy_ele.style.cssText = "font-size:13px;width:350px;color:#364e96;border: solid 3px #364e96;padding: 0.5em;border-radius: 0.5em;background: white;position: absolute;top:0;";
document.getElementsByTagName('div')[0].appendChild(dummy_ele)
})();
@SyunWatanabe
Copy link
Author

環境 Tampermonkey v.4.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment