මේ කෝඩ් එක මට නම් වැඩ, Chrome වලට.
ටෙස්ට් කරන්න කැමති කට්ටිය ගන්න:
Step 01: Download "Tampermonkey" From Chrome Store
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
Step 02: Click on "Tampermonkey" icon, choose "add a new script"
Step 03: Delete the existing code, copy+paste the code provided
Step 04: Click "Save" icon
Load this thread and see if the code works: (make sure the code is enabled)
http://www.elakiri.lk/forum/showthread.php?t=1753439
ටෙස්ට් කරන්න කැමති කට්ටිය ගන්න:
Code:
// ==UserScript==
// @name ElakiriImagePWN By Hyaenidae
// @description Get rid of Highres images posted on Elakiri.com
// @include http://www.elakiri.lk*
// @include http://www.elakiri.com*
// ==/UserScript==
maxWidth = 790;
var vB = false;
var dtag = document.getElementsByTagName('div');
for (i=0; i<dtag.length; i++) {
if (dtag[i].className.indexOf('smallfont') > -1) {
if (dtag[i].innerHTML.indexOf('2006 - 2011 ElaKiri™ Beta2.Evo vBulletin') > -1) {
vB = true;
}
}
}
if (vB) {
var aSpan = document.getElementsByTagName('td');
for (i=0; i<aSpan.length; i++) {
if (aSpan[i].className == 'alt1') {
var aImg = aSpan[i].getElementsByTagName('img');
for (j=0; j<aImg.length; j++) {
aImg[j].style.maxWidth = maxWidth + 'px';
aImg[j].title = 'Click for the original size';
aImg[j].addEventListener('click', function(event) {
if (event.currentTarget.style.maxWidth == 'none')
event.currentTarget.style.maxWidth = maxWidth + 'px';
else
event.currentTarget.style.maxWidth = 'none';
}, false);
}
}
}
}
Step 01: Download "Tampermonkey" From Chrome Store
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo
Step 02: Click on "Tampermonkey" icon, choose "add a new script"
Step 03: Delete the existing code, copy+paste the code provided
Step 04: Click "Save" icon
Load this thread and see if the code works: (make sure the code is enabled)
http://www.elakiri.lk/forum/showthread.php?t=1753439
Last edited:
ඕනේ එක click කරල බලනව එච්චරයි. 
වැඩක් නෑ බන් දැම්මට uBlock එකෙන් බ්ලොක්ඩ්