Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
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. |
|
|
you ever used the CDATA tags? Nope. But that's pretty cool. |
|
|
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;
}
]></>)
|
|
|
hey Joe
try plz reply anywhere you want but notify me on any of my scripts thanks |
|
|
Hey joe, check out my updated script and please tell me if it's good/neeeds new features. thanks |
|
|
Don't want it squashed. |
|
|
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;}
|