Skip to content

Instantly share code, notes, and snippets.

@eeeschwartz
Last active August 29, 2015 14:10
Show Gist options
  • Save eeeschwartz/0847c2033951b27d3a75 to your computer and use it in GitHub Desktop.
Save eeeschwartz/0847c2033951b27d3a75 to your computer and use it in GitHub Desktop.
Greasemonkey script to annotate pocket
// ==UserScript==
// @name annotate
// @namespace annotate
// @include http://getpocket.com/a/read/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js
// @require http://assets.annotateit.org/annotator/v1.2.5/annotator-full.min.js
// @resource UI_CSS http://assets.annotateit.org/annotator/v1.2.5/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