MediaWiki:Gadget-lastdiff.js
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.
/** * Action link: Last revision diff * * @source: www.mediawiki.org/wiki/Snippets/Last_revision_action * @rev: 2014-08-12 */mw.hook( 'wikipage.content' ).add( function() {// Not on Special pagesif ( mw.config.get( 'wgCanonicalSpecialPageName' ) ) {return;}var url = mw.util.getUrl( mw.config.get( 'wgPageName' ) ) +'?diff=' + mw.config.get( 'wgCurRevisionId' ),$link = $( '#ca-lastdiff' ).find( 'a' );if ( $link.length ) {$link.attr( 'href', url );} else {mw.util.addPortletLink( 'p-cactions', url, 'Last', 'ca-lastdiff', 'Show most recent diff' );}} );
🔥 Top keywords: Main PageSpecial:SearchModule:Track gauge/dataSOLID (object-oriented design)Wikipedia:AboutHelp:ContentsHelp:IntroductionSpecial:RecentChangesPornhubBlackAdolf Hitler UunonaFile:ASCII-Table-wide.svgList of constituencies of the Lok SabhaList of U.S. states and territories by time zoneSchrödinger's catList of U.S. states by date of admission to the UnionFile:Sexual intercourse with internal ejaculation.webmHeera MandiList of people who have walked on the MoonDavid24-hour clockModule:Emoji/dataLawrence WongCristiano RonaldoPeriodic tableList of countries by areaUnited StatesCategory:2000s American music groupsList of U.S. statesBismillahir Rahmanir RaheemList of fruitsQueen (band)Special:MyTalkXXXTentacionWikipedia:Contact usHelp:Authority controlWikipedia:Simple talkList of countries by continentsWikipedia:Simple start