forked from johnmichel/Library-Detector-for-Chrome
-
Notifications
You must be signed in to change notification settings - Fork 1
/
detect.js
22 lines (16 loc) · 778 Bytes
/
detect.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
file: detect.js
description: Content script that runs after DOM loaded to look for the Library
Detector meta element. If found, notifies the extension of the
script information
license: Library Detector is freely distributable under the MIT License
http://www.opensource.org/licenses/mit-license.php
copyright: Copyright (c) 2010 Andrew Bredow <[email protected]>. All rights reserved.
author: Andrew Bredow http://andrewbredow.com
inspiration: Library detect class inspired by Paul Bakaus' Library Detector for
Firefox http://paulbakaus.com/
**/
var meta = document.getElementById('lib_detect_meta');
if (meta) {
chrome.extension.sendRequest(JSON.parse(meta.content));
}