Archived Comments (locked)

in
Subscribe to Archived Comments 8 posts, 5 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
ScroogeMcPump Scriptwright

1) If you're interested in keeping your scripts compatible with Opera, don't use CDATA.

2) You should consider using data: URLs for your background images, so the script doesn't have to keep checking TinyPic all the time.

 
JoeSimmons Script's Author

you ever used the CDATA tags?

Nope. But that's pretty cool.

 
Avindra V.G. Scriptwright

you ever used the CDATA tags? I've used it before in HTML, but I didn't even know it can be used in JavaScript. Basically, it tells the interpreter that you're giving it "character data", so you don't have to escape new lines or backslashes or anything funny like that. Here's a silly little example:

GM_addStyle(<><![CDATA[

a:before {
content:" THIS IS A LINK ==> ";
}

a:hover {
background:#FFFFCC;
}

 ]></>)

 
dkhal Scriptwright

hey Joe
i noticed you play the guitar too! lol i kinda predicted that
nice pic
and i love the fact that you and AVG work together
i have a bit of a thing that i'm worried about
here is an decrypt function that i unmasked from a site:

function decrypt(U){
var R="";
var T=U.split(/;/);
for(var S=0;S<t>
if(T[S].match(/^([0-9]+)$/)===null){
R+=String.fromCharCode(unescape(T[S]).charCodeAt(0)-23);
}
else{
R+=String.fromCharCode(T[S]);
}
}
return R;
}

try alert(decrypt("d;%80;z;%89;%86;%8A;%86;%7D;%8B;E;o;d;c;_;k;k;g"));
and you should get Microsoft.XMLHTTP for example
now what i need to do is get the Encrypt function that writes these encodings
how do i get it?
bcoz i need to remove it from a site and replace it with another one

plz reply anywhere you want but notify me on any of my scripts thanks

 
Avindra V.G. Scriptwright

Hey joe, check out my updated script and please tell me if it's good/neeeds new features. thanks

 
JoeSimmons Script's Author

Don't want it squashed.

 
Avindra V.G. Scriptwright

    head = document.evaluate('//head',document,null,7,null).snapshotItem(0);

to

    head = document.evaluate('/html/head',document,null,9,null).singleNodeValue;

?

and here's your css squashed:

pre {color:#000;font-size:9pt;max-width:640px;background:transparent url('http://i34.tinypic.com/2j5ylo9.png');border-color:#D2D2D2;border-style:solid;border-width:1px;}code {color:#000;font-size:8pt;max-width:640px;background:#EAEAEA;border-width:0px;}blockquote {color:#000;font-size:9pt;font-family:arial verdana monospace;max-width:640px;background:#ffead5;border-color:#FFAC59;border-style:solid;border-width:1px;padding:.1em;}.posts .post .body {font-size:9pt;font-family:arial verdana monospace;padding:0px 4px;}#content {border-width:0 2px 0 0;}td {padding:.2em;}a {font-size:8pt;}

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