Skip to content

Instantly share code, notes, and snippets.

@edorcutt
Created November 3, 2011 22:19
Show Gist options
  • Save edorcutt/1338032 to your computer and use it in GitHub Desktop.
Save edorcutt/1338032 to your computer and use it in GitHub Desktop.
Google Reader Share
ruleset a169x453 {
meta {
name "Google Reader Share"
description <<
Google Reader Share
>>
author "Ed Orcutt, LOBOSLLC"
logging on
}
dispatch {
domain "www.google.com"
}
global {
thisRID = meta:rid();
}
// ------------------------------------------------------------------------
rule watch_for_clicks {
select when pageview "/reader/.*"
{
watch(".entry","click");
}
}
// ------------------------------------------------------------------------
rule entry_clicked {
select when click ".entry"
{
append("#current-entry div.entry-actions", "<span class=\"share-not-shared kynetx-share link unselectable\">Share</span><wbr></wbr>");
}
}
// ------------------------------------------------------------------------
// Beyond here there be dragons :)
// ------------------------------------------------------------------------
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment