Tomando el ejemplo de @Panino5001, simplemente deberías usar un wrapper y setear el método:
   
Código Javascript
:
Ver originalif(!document.getElementsByClassName){
 document.getElementsByClassName = function(cn){ /* ... */ };
}
var $ = function(obj){
 typeof obj == 'string' && (obj = document.getElementById(obj));
 !obj.contiene && (obj.contiene = function(str){
  if(!obj.getElementsByClassName){
   obj.getElementsByClassName = document.getElementsByClassName;
  }
  return !!obj.getElementsByClassName.call(obj, str).length;
 });
}
 
$('info').contiene('texto'); // true
  
Para esto, en la función original habría que cambiar document.getElementsByTagName por 
this.getElementsByTagName.
PD:No he probado el código, supongo que habrá algún fallo 

Saludos (: