Skip to content

Instantly share code, notes, and snippets.

@murtaugh
Last active March 29, 2016 16:49
Show Gist options
  • Save murtaugh/b8e27d6ab46ca9725430 to your computer and use it in GitHub Desktop.
Save murtaugh/b8e27d6ab46ca9725430 to your computer and use it in GitHub Desktop.
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
Copy link
Author

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