Skip to content

Instantly share code, notes, and snippets.

@xerosanyam
Forked from eeeschwartz/main.js
Last active August 29, 2015 14:10
Show Gist options
  • Save xerosanyam/dc9f266633baae62dcd9 to your computer and use it in GitHub Desktop.
Save xerosanyam/dc9f266633baae62dcd9 to your computer and use it in GitHub Desktop.
Greasemonkey code for Annotateit.org
// ==UserScript==
// @name annotate
// @namespace annotate
// @include *
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js
// @require http://assets.annotateit.org/annotator/v1.2.9/annotator-full.min.js
// @resource UI_CSS http://assets.annotateit.org/annotator/v1.2.9/annotator.min.css
// @grant GM_addStyle
// @grant GM_getResourceText
// @run-at document-start
// ==/UserScript==
var jqUI_CssSrc = GM_getResourceText('UI_CSS');
GM_addStyle(jqUI_CssSrc);
jQuery(function () {
$('body').annotator().annotator('setupPlugins', {}, {
Tags: false,
Filter: false
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment