מדיה ויקי:Gadget-WLM.js: הבדלים בין גרסאות בדף
אין תקציר עריכה |
שחזור לגרסה 19186275 מאת IKhitron |
||
| שורה 2: | שורה 2: | ||
$(function() { // Thanks to חיים 7 | $(function() { // Thanks to חיים 7 | ||
$('.mw-changeslist-line-not-watched ').hide(); | $('.mw-changeslist-line-not-watched ').hide(); | ||
$('.mw-changeslist-line-watched span.mw-title, .mw-changeslist-line-watched a.mw-title') | |||
.before( | .before( | ||
$('<a>', {text: '♦', title: 'סמן עריכה כנצפתה', href: '#nw'}) | $('<a>', {text: '♦', title: 'סמן עריכה כנצפתה', href: '#nw'}) | ||
| שורה 11: | שורה 9: | ||
var $this = $(this); | var $this = $(this); | ||
$.getJSON($this.siblings('span.mw-title').find('a:first').attr('href')); | $.getJSON($this.siblings('span.mw-title').find('a:first').attr('href')); | ||
$this. | $this.closest('.mw-changeslist-line-watched').removeClass('.mw-changeslist-line-watched') | ||
.addClass('mw-changeslist-line-not-watched').hide(); | .addClass('mw-changeslist-line-not-watched').hide(); | ||
$this.remove(); | $this.remove(); | ||