(이름공간을 뺀) 문서 제목 (page_title) | 'Myuyuyuyu/common.js' |
전체 문서 제목 (page_prefixedtitle) | '사용자:Myuyuyuyu/common.js' |
편집 전 과거 문서의 위키텍스트 (old_wikitext) | '' |
편집 후 새 문서의 위키텍스트 (new_wikitext) | '$('head').append('<script src=\'/index.php?title=사용자:Myuyuyuyu/(mascot).js&action=raw&ctype=text/javascript\'><\/script>');
var Myuyuyuyu = "http://cfile22.uf.tistory.com/image/145998354F23F60818F202";
var Myuyuyuyu_comment =
[
"..."
];
mascot.AddImage(Myuyuyuyu);
mascot.ShowMessage(Myuyuyuyu_comment[randomRange(0,Myuyuyuyu_comment.length)]);
var temp = function(){
var param =
{
"action":"query",
"meta":"notifications",
"notlimit":10,
"format":"json"
};
$.ajax("/api.php",
{
data:param,
dataType:"json"
})
.done(function(res)
{
var list_o = res.query.notifications.list;
var list = [];
for(var key in list_o)
{
list.push(list_o[key]);
}
var unread_message = [];
for(var i = 0 ; i < list.length ; i++)
{
if(list[i].read == null && list[i].type != "page-linked")
{
unread_message.push(list[i]);
}
}
if(unread_message.length != 0)
{
mascot.ShowMessage("<a style='color:#FFF;' href='/wiki/"+ encodeURIComponent(unread_message[unread_message.length - 1].title.full) + "'>(...). </a>");
}
else
{
}
});
};
temp();
setInterval(temp,1000 * 20);' |
편집 전후의 차이 (edit_diff) | '@@ -1 +1,52 @@
-
+$('head').append('<script src=\'/index.php?title=사용자:Myuyuyuyu/(mascot).js&action=raw&ctype=text/javascript\'><\/script>');
+var Myuyuyuyu = "http://cfile22.uf.tistory.com/image/145998354F23F60818F202";
+
+var Myuyuyuyu_comment =
+[
+ "..."
+];
+
+mascot.AddImage(Myuyuyuyu);
+mascot.ShowMessage(Myuyuyuyu_comment[randomRange(0,Myuyuyuyu_comment.length)]);
+var temp = function(){
+ var param =
+ {
+ "action":"query",
+ "meta":"notifications",
+ "notlimit":10,
+ "format":"json"
+ };
+ $.ajax("/api.php",
+ {
+ data:param,
+ dataType:"json"
+ })
+ .done(function(res)
+ {
+ var list_o = res.query.notifications.list;
+ var list = [];
+ for(var key in list_o)
+ {
+ list.push(list_o[key]);
+ }
+ var unread_message = [];
+ for(var i = 0 ; i < list.length ; i++)
+ {
+ if(list[i].read == null && list[i].type != "page-linked")
+ {
+
+ unread_message.push(list[i]);
+ }
+ }
+ if(unread_message.length != 0)
+ {
+ mascot.ShowMessage("<a style='color:#FFF;' href='/wiki/"+ encodeURIComponent(unread_message[unread_message.length - 1].title.full) + "'>(...). </a>");
+ }
+ else
+ {
+
+ }
+ });
+};
+temp();
+setInterval(temp,1000 * 20);
' |
편집 중 추가된 줄 (added_lines) | [
0 => '$('head').append('<script src=\'/index.php?title=사용자:Myuyuyuyu/(mascot).js&action=raw&ctype=text/javascript\'><\/script>');',
1 => 'var Myuyuyuyu = "http://cfile22.uf.tistory.com/image/145998354F23F60818F202";',
2 => ' ',
3 => 'var Myuyuyuyu_comment = ',
4 => '[',
5 => ' "..."',
6 => '];',
7 => ' ',
8 => 'mascot.AddImage(Myuyuyuyu);',
9 => 'mascot.ShowMessage(Myuyuyuyu_comment[randomRange(0,Myuyuyuyu_comment.length)]);',
10 => 'var temp = function(){',
11 => ' var param = ',
12 => ' {',
13 => ' "action":"query",',
14 => ' "meta":"notifications",',
15 => ' "notlimit":10,',
16 => ' "format":"json"',
17 => ' };',
18 => ' $.ajax("/api.php",',
19 => ' {',
20 => ' data:param,',
21 => ' dataType:"json"',
22 => ' })',
23 => ' .done(function(res)',
24 => ' {',
25 => ' var list_o = res.query.notifications.list;',
26 => ' var list = [];',
27 => ' for(var key in list_o)',
28 => ' {',
29 => ' list.push(list_o[key]);',
30 => ' }',
31 => ' var unread_message = [];',
32 => ' for(var i = 0 ; i < list.length ; i++)',
33 => ' {',
34 => ' if(list[i].read == null && list[i].type != "page-linked")',
35 => ' {',
36 => ' ',
37 => ' unread_message.push(list[i]);',
38 => ' }',
39 => ' }',
40 => ' if(unread_message.length != 0)',
41 => ' {',
42 => ' mascot.ShowMessage("<a style='color:#FFF;' href='/wiki/"+ encodeURIComponent(unread_message[unread_message.length - 1].title.full) + "'>(...). </a>");',
43 => ' }',
44 => ' else',
45 => ' {',
46 => ' ',
47 => ' }',
48 => ' });',
49 => '};',
50 => 'temp();',
51 => 'setInterval(temp,1000 * 20);'
] |