מדיה ויקי:Gadget-WLM-draft.js: הבדלים בין גרסאות בדף

אין תקציר עריכה
אין תקציר עריכה
שורה 1: שורה 1:
window.script96 = true;
function seen() {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Watchlist' ) {
$('.mw-changeslist-line-not-watched span.mw-title, .mw-changeslist-line-watched span.mw-title').before(
$('<a>', {text: '*', title: 'סמן עריכה כלא נקראה', href: '#nw'})
.css({marginLeft: '0.3em', marginRight: '0.1em', color: 'green'}).click(function() {
var $this = $(this);
var oldrev = /oldid=([0-9]+)/.exec($this.parent().find('a[href*="oldid"]').prop('href'))[1];
new mw.Api().postWithToken('csrf', {
action: 'setnotificationtimestamp',
titles: $this.next().text(),
newerthanrevid: oldrev
}).done(function(){
mw.notify('סומן');
$this.closest('.mw-changeslist-line-not-watched').addClass('mw-changeslist-line-watched');
});
} ) );
$('.mw-changeslist-line-not-watched ').hide();
$('.mw-changeslist-line-watched span.mw-title').before( // Thanks to חיים 7
$('.mw-changeslist-line-watched span.mw-title').before( // Thanks to חיים 7
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'})
$('<a>', {text: '♦', title: 'סמן עריכה כנקראה', href: '#nw'})
שורה 34: שורה 18:
$this.remove();
$this.remove();
} ) );
} ) );
}
window.script96 = true;
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) == 'Watchlist' ) {
$('.mw-changeslist-line-not-watched span.mw-title, .mw-changeslist-line-watched span.mw-title').before(
$('<a>', {text: '*', title: 'סמן עריכה כלא נקראה', href: '#nw'})
.css({marginLeft: '0.3em', marginRight: '0.1em', color: 'green'}).click(function() {
var $this = $(this);
var oldrev = /oldid=([0-9]+)/.exec($this.parent().find('a[href*="oldid"]').prop('href'))[1];
new mw.Api().postWithToken('csrf', {
action: 'setnotificationtimestamp',
titles: $this.next().text(),
newerthanrevid: oldrev
}).done(function(){
mw.notify('סומן');
$this.closest('.mw-changeslist-line-not-watched').addClass('mw-changeslist-line-watched');
});
} ) );
$('.mw-changeslist-line-not-watched ').hide();
seen();
$('.mw-changeslist-line-watched td.mw-enhanced-rc').before(
$('.mw-changeslist-line-watched td.mw-enhanced-rc').before(
$('<a>', {text: '●', title: 'הסתר עריכה', href: '#nw'})
$('<a>', {text: '●', title: 'הסתר עריכה', href: '#nw'})