if (mw.config.get('wgPageName') == "Special:Watchlist") {
var newsIntCode =
' ' + '<span style="padding-left:5px;">New changes style:</span>' +
'<input type="radio" name="newsStyle" value="1" /><span class="newsLabel">Subtle</span>' +
'<input type="radio" name="newsStyle" value="2" /><span class="newsLabel">Italics</span>' +
'<input type="radio" name="newsStyle" value="3" /><span class="newsLabel">Bold</span>' +
'<input type="radio" name="newsStyle" value="4" /><span class="newsLabel">Stars</span>' +
'<input type="radio" name="newsStyle" value="5" /><span class="newsLabel">Stars + Bold</span>' +
'<input type="radio" name="newsStyle" value="6" /><span class="newsLabel">Fade old</span>' +
'<input type="radio" name="newsStyle" value="7" /><span class="newsLabel">Color change</span>' +
'<input type="radio" name="newsStyle" value="8" /><span class="newsLabel">Disable</span>';
$('[value="Go"]:submit').after(newsIntCode);
$('.newsLabel').css('padding-right', '5px').css('padding-left', '3px');
$('[name="newsStyle"]:radio').click(function(){
// Clear existing
$('strong.mw-watched').attr('style','');
$('strong.mw-watched').find('a').attr('style','');
$('table.mw-enhanced-rc').find('td').attr('style','');
$('table.mw-enhanced-rc').find('a').attr('style','');
// Apply choice
if ($(this).attr('value') == 1) $('strong.mw-watched').css('border-bottom', '1px dotted #000');
if ($(this).attr('value') == 2) $('strong.mw-watched').css('font-style', 'italic');
if ($(this).attr('value') == 3) $('strong.mw-watched').find('a').css('font-weight', 'bold');
if ($(this).attr('value') == 4) $('strong.mw-watched').find('a').css('padding-left','16px').css('background', 'url(//upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Pentagram_dis.svg/13px-Pentagram_dis.svg.png) no-repeat left');
if ($(this).attr('value') == 5) {
$('strong.mw-watched').find('a').css('font-weight', 'bold');
$('strong.mw-watched').find('a').css('padding-left','16px').css('background', 'url(//upload.wikimedia.org/wikipedia/commons/thumb/a/ac/Pentagram_dis.svg/13px-Pentagram_dis.svg.png) no-repeat left');
}
if ($(this).attr('value') == 6) {
$('table.mw-enhanced-rc').find('td:gt(0)').css('opacity', '0.8');
$('table.mw-enhanced-rc').find('a:first').css('opacity', '0.68').css('font-style','italic').css('font-size','98%');
$('strong.mw-watched').parents('table').addClass('mw-watched');
$('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%');
}
if ($(this).attr('value') == 7) $('strong.mw-watched').find('a').css('color', '#008B8B');
if ($(this).attr('value') == 8) $('strong.mw-watched').find('a').css('font-weight', 'normal');
// Store setting
localStorage.setItem('newsStore', $(this).attr('value'));
});
var newsOption = localStorage.getItem('newsStore');
$('[name="newsStyle"][value="' + newsOption + '"]').click();
}