Skip to content

Commit

Permalink
Change opacity to 1 on hover
Browse files Browse the repository at this point in the history
  • Loading branch information
angussidney committed Feb 9, 2017
1 parent 462c377 commit d81483e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoflagging.user.js
Expand Up @@ -21,7 +21,7 @@
var link = window.document.createElement('link');
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = 'data:text/css, .ai-information:not(.inline) { float: right; margin-right: 3px; position: relative; top: 1px } .ai-information { font-size: 11px; -webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none; cursor: default; } .ai-spinner { height: 1.5em; }';
link.href = 'data:text/css, .ai-information:not(.inline) { float: right; margin-right: 3px; position: relative; top: 1px } .ai-information { font-size: 11px; -webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none; cursor: default; } .ai-spinner { height: 1.5em; } .ai-deleted {opacity: 0.5} .ai-deleted:hover {opacity: 1}';
document.getElementsByTagName("head")[0].appendChild(link);

// Constants
Expand Down Expand Up @@ -191,7 +191,7 @@
// Deletion log
//console.log(deletionLog.post_link + ' deleted');
var selector = ".user-" + autoflagging.smokeyID + " .message a[href^='" + autoflagging.prefix + deletionLog.post_link + "']";
$(selector).parent().css('opacity', '0.5');
$(selector).parent().toggleclass('ai-deleted');
} else if (typeof feedback != 'undefined') {
// Feedback
// TODO: show realtime feedback
Expand Down

0 comments on commit d81483e

Please sign in to comment.