ਵਰਤੋਂਕਾਰ:Harry sidhuz/talkboard.js
ਦਿੱਖ
Note: After saving, changes may not occur immediately. Click here to learn how to bypass your browser's cache.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (Cmd-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (Cmd-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Clear the cache in Tools → Preferences
For details and instructions about other browsers, see Wikipedia:Bypass your cache.
$(document).ready(function() {
if((mw.config.values.wgUserGroups).indexOf("autoconfirmed")==-1)
if($('#pt-notifications-alert a').attr("data-counter-num")!=='0')
$.ajax({
url : "/w/api.php?action=parse&page=User_Talk:"+mw.config.values.wgUserName+"&prop=text&format=json",
dataType: "text",
success : function (cont) {
var data = JSON.parse(cont);
sec=(data.parse.text['*']).split("<h2>");
$('#siteNotice').prepend(mw.config.values.wgUserName+"<br/><h2>"+sec[sec.length-1]);
}
});
});