Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Attempts to hide Genius annotations
// hides the yellow indication of an annotation
genius-referent {
background: transparent !important;
cursor: text !important;
}
// hides the "Annotate" popup that appears when you select text
genius-pre-annotation-prompt {
display: none !important;
}
// this assumes jQuery
// attempts to neuter any existing annotations
$('genius-referent')
.attr('data-genius-style-id','')
.attr('data-genius-featured-referent','')
.attr('data-genius-referent-id','')
.attr('data-genius-wrapped-path','')
.attr('data-genius-api-path','')
.attr('data-genius-annotator-id','');
@murtaugh

This comment has been minimized.

Copy link
Owner Author

commented Mar 29, 2016

This is somewhat fragile, but it doesn't affect your content and is simple to install.

I do not believe it works on pages that Genius has already scraped, but I could be wrong.

@murtaugh

This comment has been minimized.

Copy link
Owner Author

commented Mar 29, 2016

So far this seems to work in the web-only version of Genius' annotations; I don't know if it works in the add-on powered ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.