Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
//MultiM by Think//
var groupe_multim=['God D. Sogeflo','Gol D Shanks','Portgas D. Dohv','Defropp','Mr. Katana','Heat Fist Ño Ace','Monkey-d-luffi','Monkey D Chopper','VaLoon'];
importScriptPage('Utilisateur:Think_D._Solucer/MultiM.js', 'fr.onepiece');
importArticles({
type: 'script',
articles: [
'u:dev:QuickComments/code.js'
]
});
importArticles({
type: "script",
articles: [
"w:c:dev:MediaWiki:Countdown/code.js"
]
});
//Code by Hulothe d'après l'idée de Flo121297 pour One Piece Encyclopédie
function getDiffLink(url) {
return $.ajax({
type: "GET",
url: url
});
}
if ($( '#WikiaRail' ).length) {
$( '#WikiaRail' ).bind('DOMNodeInserted', function(event) {
if ($( '#WikiaRecentActivity' ).length) {
$( '.WikiaActivityModule li em > a' ).each(function() {
var $this = $( this ),
lien = wgServer + $this.attr( 'href' ) + '?action=history',
lienDiff = getDiffLink(lien);
lienDiff.success(function(content) {
var link = $(content).find( '#pagehistory li' ).eq(0).find( '.mw-history-histlinks a' ).attr( 'href' );
$this.parents( 'li' ).find( 'img.sprite.edit' ).replaceWith( '<a href="' + link + '" title="voir les changements de cette page" rel="nofollow"><img src="http://slot1.images.wikia.nocookie.net/__cb1435262597/common/extensions/wikia/MyHome/images/diff.png" width="16" height="16" alt="diff"></a>' );
});
});
}
});
}