User:Equazcion/ReverseMarkedT.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
if (wgPageName == "Special:Watchlist") {

  // The new watchlist feature adds a new HTML tag for unchecked links, and doesn't to anything to checked links. 
  // Therefore we can't reference only the checked links. Instead, we apply the fade to all items, 
  // then un-fade the items that have the new tag.
 
  // Fade style for the entire checked line
  $('table.mw-enhanced-rc').find('td:gt(0)').css('opacity', '0.8');  // Apply subtle fade to the second table cell of each line 
                                                                     // Includes everything except timestamp/nbsp's/bot/minor/etc

  // Fade style for the checked main link only
  $('table.mw-enhanced-rc').find('a:first').css('opacity', '0.75').css('font-style','italic').css('font-size','95%'); //
                                                            // Apply additional dramatic fade to the first <a> (link) in the table

  // Style for unchecked
  $('strong.mw-watched').parents('table').addClass('mw-watched');    // Apply new tag's class to the entire line (table element)
  $('table.mw-watched').find('a:first').css('opacity', '1').css('font-style','normal').css('font-size','100%');
  $('table.mw-watched').find('td:gt(0)').css('opacity', '1').css('font-style','normal').css('font-size','100%');
                                                                     // Apply default style to second cell of tables now classed,
                                                                     // and to the first <a> (link) of each 

  // "Mark all" button is pretty much useless in this setup
  $('#mw-watchlist-resetbutton').remove();

}

if (wgAction == "history") {
 
  // Green "updated since my last visit" notices are also not conducive to this setup, 
  // since we're now trying to "demote" checked changes rather than highlight unchecked ones.
  
  $('.updatedmarker').remove();
 
}