Minitools problem

Anders Lund anders at alweb.dk
Sat Mar 22 17:04:30 GMT 2008


Hi, I have a problem with the minitools extension to konqueror: some of my 
scripts work, some not.

The two below scripts (in the XML representation) does not work, and they 
appear blank when I look at the minitools in the bookmark editor:

javascript:(function(){var k,x,t,i,j; for(k=0;x=document.links[k];k++)
{t=x.href.replace(/[%]3A/ig,':').replace(/[%]
2f/ig,'/');i=t.lastIndexOf('http://');if(i>0)
{t=t.substring(i);j=t.indexOf('&');if(j>0)t=t.substring(0,j);x.href=unescape(t)} 
else if (x.onmouseover&&x.onmouseout){x.onmouseover(); if 
(window.status.indexOf('://')!=-1)x.href=window.status; x.onmouseout(); } 
x.onmouseover=null; x.onmouseout=null; }})();

javascript:(function(){var newSS, styles='* { background: white ! important; 
color: black !important } :link, :link * { color:
%20#0000EE !important } :visited, :visited * { color: #551A8B !important }'; 
if(document.createStyleSheet) { 
document.createStyleSheet("javascript:'"+styles+"'"); } 
else { newSS=document.createElement('link'); newSS.rel='stylesheet'; 
newSS.href='data:text/css,'+escape(styles); 
document.documentElement.childNodes[0].appendChild(newSS); } })();

Looking at the output from konqueror and the source of the extension, it looks 
like they come out empty from the KURL constructor.

Can anybody point out why they would fail QUrl validation? And is this a bug 
in KDE or in QURL?

-- 
Anders

www: http://www.alweb.dk
jabber: anderslund at jabber.dk




More information about the kde-core-devel mailing list