Last active
March 29, 2016 16:49
-
-
Save murtaugh/b8e27d6ab46ca9725430 to your computer and use it in GitHub Desktop.
Attempts to hide Genius annotations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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',''); |
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
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.