Created
September 24, 2018 15:30
-
-
Save kimniche/8276d8fcb8dc512c2f520092b7298cb3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Show Entity Guids | |
// @namespace https://www.niche.com/ | |
// @version 1.1 | |
// @description show entity guids | |
// @author Geoff | |
// @match https://www.niche.com/* | |
// @grant none | |
// @require http://code.jquery.com/jquery-latest.js | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
setTimeout(function() { | |
if (dataLayer[0].entityGuid) { | |
$('#header').append('<div style="position: fixed; top: 20px; right: 20px; color: #53a63a; font-size: 20px; font-weight: 800; background-color: #fff; padding: 20px; border: 2px solid black; box-shadow: 0 10px 6px -6px #777; z-index: 99999999;">' + dataLayer[0].entityGuid + '</div>'); | |
} | |
}, 500); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment