ବ୍ୟବହାରକାରୀ:Ssgapu22/common.js
ସୂଚନା: ବଦଳଗୁଡ଼ିକ ଦେଖିବା ପାଇଁ ଆପଣଙ୍କୁ ହୁଏତ ନିଜ ବ୍ରାଉଜର କ୍ୟାସ ବାଇପାସ କରିବାକୁ ପଡ଼ିପାରେ ।
- Firefox / Safari: Reload ଉପରେ କ୍ଲିକ କରିବା ବେଳେ Shift ଧରି କିମ୍ବା Ctrl-F5 ବା Ctrl-R ଦବାନ୍ତୁ (Macରେ ⌘-R)
- Google Chrome: Ctrl-Shift-R ଦବାନ୍ତୁ (Macରେ ⌘-Shift-R)
- Internet Explorer / Edge: Refresh ଉପରେ କ୍ଲିକ କଲା ବେଳେ Ctrl ଧରି ବା Ctrl-F5 ଦବାଇ
- Opera: Ctrl-F5 ଦବାନ୍ତୁ ।
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Joeytje50/JWB.js/load.js&action=raw&ctype=text/javascript');
// [[User:Dr pda/prosesize]]
mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fprosesize.js&action=raw&ctype=text/javascript');
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');
mw.loader.load( 'https://tools-static.wmflabs.org/cdnjs/ajax/libs/fancybox/3.5.7/jquery.fancybox.min.js' );
$('.image').each(function(i, obj) {
var html = $(this).clone();
html.text('View Details');
html.removeClass('image');
$(this).after(html);
var thumbNailLink = $(this).find('img').attr('src');
if (thumbNailLink) {
if (thumbNailLink.toLowerCase().indexOf(".jpg") >= 0) {
extPosition = thumbNailLink.toLowerCase().indexOf(".jpg");
} else if (thumbNailLink.toLowerCase().indexOf(".jpeg") >= 0) {
extPosition = thumbNailLink.toLowerCase().indexOf(".jpeg")+1;
} else if (thumbNailLink.toLowerCase().indexOf(".svg") >= 0) {
extPosition = thumbNailLink.toLowerCase().indexOf(".svg");
} else if (thumbNailLink.toLowerCase().indexOf(".gif") >= 0) {
extPosition = thumbNailLink.toLowerCase().indexOf(".gif");
} else {
extPosition = thumbNailLink.toLowerCase().indexOf(".png");
}
$(this).attr('href', thumbNailLink.substring(0, extPosition+4).replace('thumb/',''));
$(this).attr('data-fancybox', 'gallery');
}
});