In today's article we are going to talk about
User:Splarka/diffsize.js, a topic that has been the subject of interest and debate for a long time.
User:Splarka/diffsize.js is a topic that has captured the attention of experts and non-experts alike, due to its relevance in our current society. Whether for its impact on health, economics, politics or any other area,
User:Splarka/diffsize.js has proven to be a topic worthy of exploration and analysis. In this article, we will dive into the various aspects that make
User:Splarka/diffsize.js a topic worthy of study, and try to shed some light on its implications and future prospects. Join us on this journey to discover more about
User:Splarka/diffsize.js and its relevance in today's world.
/* Diff non-context zoom script, version
Originally from: http://en.wikipedia.orghttps://wikifreehand.com/en/User:Splarka/diffsize.js
* Factors the font size by +/- 20%
* Removes old style element on each instance
** Note: some browsers may experience odd wrapping in the overflow:auto diff cells, a ctrl+/- or window resize should fix the problem.
*/
var diffzoomzoom = 100, diffstyle;
if(queryString('diff')) addOnloadHook(function() {
mw.util.addPortletLink('p-tb','javascript:diffZoom(.8333)','Diff zoom out','t-diffz1','Zoom out (shrink) differences','-');
mw.util.addPortletLink('p-tb','javascript:diffZoom(1.2)','Diff zoom in','t-diffz1','Zoom in (enlarge) differences','+');
})
function diffZoom(factor) {
diffzoomzoom = diffzoomzoom * factor;
if(diffstyle) diffstyle.parentNode.removeChild(diffstyle)
diffstyle = appendCSS('td.diff-addedline, td.diff-deletedline { font-size:' + parseInt(diffzoomzoom) + '% !important; }');
}
function queryString(p) {
var re = RegExp('' + p + '=(*)');
var matches;
if (matches = re.exec(document.location)) {
try {
return decodeURI(matches);
} catch (e) {
}
}
return null;
}