Given that MW API treats protection levels absolutely and not relatively, this will have to implemented a bit smartly to be useful. See https://en.wikipedia.org/wiki/MediaWiki:Gadget-morebits.js for hints: functions this.protect and fnProcessProtect.
Given that MW API treats protection levels absolutely and not relatively, this will have to implemented a bit smartly to be useful. See https://en.wikipedia.org/wiki/MediaWiki:Gadget-morebits.js for hints: functions
this.protect
andfnProcessProtect
.