මාධ්යවිකි:Gadget-ShortDiff.js
$(shortDiffURLs)
function shortDiffURLs(){
document.body.addEventListener('mousedown', shortDiffClick)
}
function shortDiffClick(e){
e = e || window.event
var targ = e.srcElement || e.target
var url = targ.href
if (!url || (url.indexOf('diff=') == -1)) return
targ.href = url.replace(/title=[^&]*&/,'')
};
Text is available under the CC BY-SA 4.0 license; additional terms may apply.
Images, videos and audio are available under their respective licenses.