opera

Dec 17, 2011 at 11:35 AM
Edited Dec 21, 2011 at 11:01 AM

ha ;} i started scrip fixer for my opera and in testing i see you too maded it ;]

i published my version, which is allmost identical on https://addons.opera.com/en/addons/extensions/details/codeplex-elastic-layout-extension

Coordinator
Dec 17, 2011 at 1:13 PM

Hehe :)

I sincerely hope that CodePlex guys will restore elastic site layout
rendering our browser extensions useless :)

Dec 17, 2011 at 2:27 PM

good practice counts ;}

Dec 21, 2011 at 8:25 AM
Edited Feb 4, 2012 at 1:38 PM

new source:

// ==UserScript==
// @include http://*.codeplex.com/*
// ==/UserScript==

document.getElementsByClass = function(nm, nm2, nm3)
{
   var itemsfound = new Array;
   var elements = document.getElementsByTagName('*');   
   var r = new RegExp('\\b' + nm + '\\b');
   var r2 = new RegExp('\\b' + nm2 + '\\b');
   var r3 = new RegExp('\\b' + nm3 + '\\b');
   for(var i=0;i<elements.length;i++)
   {  
      if(r.test(elements[i].className) || r2.test(elements[i].className) || r3.test(elements[i].className))
	  {
         itemsfound.push(elements[i]);
      }
   }
   
   return itemsfound;
}

document.addEventListener('DOMContentLoaded', function()
{
     var items = document.getElementsByClass('FixedWidth', 'WikiContent', 'WikiHolder');
	{
	  for(var i = 0; i < items.length; i++)
	  {
		 items[i].style.width = "99%";
	  }
    }    
    
}, false);