POC Helper

By Nites Last update Jul 20, 2010 — Installed 77,530 times.

SOLUCION temporal

in
Subscribe to SOLUCION temporal 6 posts, 4 voices



Tony Billy User
FirefoxWindows

Los que querais hacer funcionar el script, editarlo de la siguiente manera:
Donde dice:

////////////////////////////////////////////////////////////////////////////////////
// Remove Facebook
////////////////////////////////////////////////////////////////////////////////////
var iframes = document.getElementsByTagName('iframe');
var doclocation = "" + document.location;
if(doclocation.match("apps.facebook.com")){
for(var i=0; i<iframes>
if(iframes.item(i).src.match('kingdomsofcamelot.com')){
window.location.replace(iframes.item(i).src);
}
}
}

SUSTITUIR POR:

////////////////////////////////////////////////////////////////////////////////////
// Detect Iframe
////////////////////////////////////////////////////////////////////////////////////
var theIframe;
var iframes = document.getElementsByTagName('iframe');
var doclocation = "" + document.location;
if(doclocation.match("apps.facebook.com")){
for(var i=0; i<iframes>
if(iframes.item(i).src.match('kingdomsofcamelot.com')){
theIframe = iframes.item(i);
}
}
}

function getElementsByClassName(node,classname) {
if (node.getElementsByClassName) { // use native implementation if available
return node.getElementsByClassName(classname);
} else {
return (function getElementsByClass(searchClass,node) {
if ( node == null )
node = document;
var classElements = [],
els = node.getElementsByTagName("*"),
elsLen = els.length,
pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j;

for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
})(classname, node);
}
}

function changeSize(){
var ancho = "1400px";
var window2 = getElementsByClassName(document, "UIStandardFrame_Container");
var window3 = getElementsByClassName(document, "UIStandardFrame_Content");

window2[0].style.width = ancho;
window3[0].style.width = ancho;
theIframe.style.width = ancho;

}
setTimeout(
function(){changeSize();}
,3000);

 
Tony Billy User
FirefoxWindows

CHANGES:

Mejor esto:

////////////////////////////////////////////////////////////////////////////////////
// Detect Iframe
////////////////////////////////////////////////////////////////////////////////////

var theIframe;
var iframes = document.getElementsByTagName('iframe');
var doclocation = "" + document.location;
if(doclocation.match("apps.facebook.com")){
for(var i=0; i<iframes>
if(iframes.item(i).src.match('kingdomsofcamelot.com')){
theIframe = iframes.item(i);
}
}
}

function getElementsByClassName(node,classname) {
if (node.getElementsByClassName) { // use native implementation if available
return node.getElementsByClassName(classname);
} else {
return (function getElementsByClass(searchClass,node) {
if ( node == null )
node = document;
var classElements = [],
els = node.getElementsByTagName("*"),
elsLen = els.length,
pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j;

for (i = 0, j = 0; i < elsLen; i++) {
if ( pattern.test(els[i].className) ) {
classElements[j] = els[i];
j++;
}
}
return classElements;
})(classname, node);
}
}

function changeSize(){
var ancho = "1400px";
var window2 = getElementsByClassName(document, "UIStandardFrame_Container");
var window3 = getElementsByClassName(document, "UIStandardFrame_Content");
window2[0].style.width = ancho;
window3[0].style.width = ancho;
theIframe.style.width = ancho;

}
window.addEventListener ("load", function() {changeSize();}, false)

 
gianlore User
FirefoxWindows

To me this solution does not work

 
Tony Billy User
FirefoxWindows

Hi have this on two pc and work it.

 
UtherPenDragon Scriptwright
FirefoxWindows

ciao, qualcuno sa spiegarmi in italiano la soluzione per far funzionare nuovamente lo script, ho provato a tradurre questa pagina con google ma esce una cosa incomprensibile ho capito solo che va modificato lo script ma non so come poterlo aprire per modificarlo..

 
erthwjim User
FirefoxWindows

You need the KOC widemapper gian, I tried without koc widemap and nothing happened. But with it everything works. Make sure you have the most recent version.

Oops sorry he added some code in there it seems. The change size part, tony can you bold the area that is new to the script?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel