/*jslint indent: 2*/
/*global mw, $*/
mw.hook('wikipage.content').add(function () {
'use strict';
if (mw.config.get('wgAction') !== 'history') { return; }
var hidedEdits = $('#pagehistory .history-user > a')
.filter('[href$="bot"], [href$="Bot"], [href$="BOT"], [href$="BoT"], [href*="bot&"], [href*="Bot&"], [href*="BOT&"], [href*="BoT&"]').parent().parent()
.filter(':not(:last-child())')
.has('.minoredit').hide();
if (hidedEdits.length === 0) { return; }
$('<button class="cdx-button">' + 'بۆتەکان نیشان بدە/بشارەوە' + '</button> ' ).click(function (e) {
hidedEdits.toggle();
e.preventDefault();
}).insertAfter('.mw-history-compareselectedversions-button');
});