{"id":351,"date":"2009-04-27T18:16:03","date_gmt":"2009-04-27T22:16:03","guid":{"rendered":"http:\/\/eligrey.com\/?p=351"},"modified":"2009-04-27T18:16:03","modified_gmt":"2009-04-27T22:16:03","slug":"citedrag-wordpress-plugin-userscript","status":"publish","type":"post","link":"https:\/\/eligrey.com\/blog\/citedrag-wordpress-plugin-userscript\/","title":{"rendered":"CiteDrag WordPress plugin and UserScript"},"content":{"rendered":"<p>Due to <a href=\"http:\/\/ajaxian.com\/archives\/citedrag-cool-library-that-groks-the-new-drag-and-drop-model\">Ajaxian recently featuring<\/a> my <a href=\"http:\/\/github.com\/eligrey\/CiteDrag\">CiteDrag<\/a> JavaScript library and a suggestion in the comments, I went ahead and made a <a href=\"http:\/\/code.eligrey.com\/citedrag\/userscript\/0.0.3\/citedrag.user.js\">CiteDrag UserScript<\/a> that applies CiteDrag to every website and a <a href=\"http:\/\/code.eligrey.com\/citedrag\/wordpress-plugin\/1.0.0\/citedrag.zip\">WordPress plugin<\/a> that includes CiteDrag on every page of a WordPress-powered website. If you&#8217;re using Firefox, you can install the UserScript with <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/748\">Greasemonkey<\/a>.<\/p>\n<p>You may be thinking that if you visit a page that already uses CiteDrag and have the userscript installed, that the citations would be doubled. This won&#8217;t happen though because CiteDrag stores the original data for the <code>text\/html<\/code> and <code>text\/plain<\/code> data types in the <code>text\/x-original-html<\/code> and <code>text\/x-original-plain<\/code> data types. If the UserScript detects that these data types are set, it will use them instead of the already-cited data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Due to Ajaxian recently featuring my CiteDrag JavaScript library and a suggestion in the comments, I went ahead and made a CiteDrag UserScript that applies CiteDrag to every website and a WordPress plugin that includes CiteDrag on every page of a WordPress-powered website. If you&#8217;re using Firefox, you can install the UserScript with Greasemonkey. You [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[16,91,174,183],"class_list":["post-351","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-citedrag","tag-javascript-libraries","tag-userscripts","tag-wordpress"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pfpUD-5F","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts\/351","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/comments?post=351"}],"version-history":[{"count":0,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/posts\/351\/revisions"}],"wp:attachment":[{"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/media?parent=351"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/categories?post=351"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eligrey.com\/blog\/wp-json\/wp\/v2\/tags?post=351"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}