Skip to content

Instantly share code, notes, and snippets.

@kimniche
Created September 24, 2018 15:30
Show Gist options
  • Save kimniche/8276d8fcb8dc512c2f520092b7298cb3 to your computer and use it in GitHub Desktop.
Save kimniche/8276d8fcb8dc512c2f520092b7298cb3 to your computer and use it in GitHub Desktop.
// ==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