Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rsanchez/385828 to your computer and use it in GitHub Desktop.
Save rsanchez/385828 to your computer and use it in GitHub Desktop.
javascript: var el = document.createElement('div'); el.setAttribute('id', 'is-ee-bookmarklet-msg'); el.setAttribute('style', 'padding:15px;margin:0;font-weight:bold;color:#fff;font-size:20px;top:0;left:0;width:100%;text-align:center;position:fixed;z-index:999999999;background-color:#090;'); if (document.cookie.match(/exp_tracker=([^&]*)/)) { el.innerHTML = 'This site uses ExpressionEngine'; } else { el.style.backgroundColor = '#900'; el.innerHTML = 'This site does not use ExpressionEngine'; } if (typeof jQuery != 'undefined') { var el = jQuery(el); el.hide(); jQuery('body').append(el); jQuery('#is-ee-bookmarklet-msg').slideDown(); setTimeout("jQuery('#is-ee-bookmarklet-msg').slideUp();", 4000); } else { document.getElementsByTagName('body')[0].appendChild(el); setTimeout("document.getElementsByTagName('body')[0].removeChild(document.getElementById('is-ee-bookmarklet-msg'));", 4000); }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment