Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 1.1 KB

README.md

File metadata and controls

28 lines (17 loc) · 1.1 KB

RCED

Responsive Chrome Extension Detection

This is a jQuery plugin to detect chrome extensions by their key value and serve custom content

Initially the goal is to detect the buffer chrome extension and simply serve content on successful detection:

<div class=".gsd-buffer">BUFFER!</div>

The main script for this was taken from http://blog.kotowicz.net/2012/02/intro-to-chrome-addons-hacking.html

To use this in a Ghost theme add ghostSocialDetection.js to assets/js/ folder of theme file Link to this file in default.hbs

<script type="text/javascript" src="{{asset "js/ghostSocialDetection.js"}}"></script>

Finally add html element as a placeholder for the content you wish to show/hide with a class of .gsd-buffer E.g: