Recent posts by JoeSimmons

Subscribe to Recent posts by JoeSimmons 182 posts found

5 hours ago
JoeSimmons 182 posts

Topic: Script development / Gravatar Enlarge

But you can search for gravatar images right here and change there location before viewing?!

I already did that. It's a script on my profile lol.

Make it run on all pages:

Already did that too. And if you read correctly, and read my script code, you would know it wouldn't matter.

 
Oct 10, 2008
JoeSimmons 182 posts

Topic: Script development / XMLHttpRequest Screen Size

Isn't there a parameter for how many results you want to get?

Yes, it's called &num=100 but it doesn't work on image searches, just on web searches.

Ktashes, you're looking for innerWidth & innerHeight

 
Oct 9, 2008
JoeSimmons 182 posts

Topic: Script development / Gravatar Enlarge

Search for all the images on the page, if you find one with a src to gravatar insert the image inside a link to the larger image.

Already did that, but is there any way this script would work right here?

 
Oct 8, 2008
JoeSimmons 182 posts

Topic: Ideas and script requests / Registration Notification

That i means case insensitive. So if it's Inscription or inscription, it will find it.

 
Oct 8, 2008
JoeSimmons 182 posts

Topic: Script development / how can i purposely leave a variable blank

Just simply put var names;

 
Oct 8, 2008
JoeSimmons 182 posts

Topic: Script development / Gravatar Enlarge

Hmm. Any way to fix that?

 
Oct 8, 2008
JoeSimmons 182 posts

Topic: Ideas and script requests / Registration Notification

Ok midorocco I just fixed the script with what you want.
http://userscripts.org/scripts/show/34716

 
Oct 8, 2008
JoeSimmons 182 posts

Topic: Userscripts.org discussion / Spam and malware

Script copiers (copied from me):
http://userscripts.org/users/62984/scripts
http://userscripts.org/users/67111/scripts

 
Oct 7, 2008
JoeSimmons 182 posts

Topic: Script development / Gravatar Enlarge

Yeah I meant to put the second include as an exclude but didn't pay attention enough.
Your code doesn't work znerp. My code doesn't either. I don't know why.

 
Oct 7, 2008
JoeSimmons 182 posts

Topic: Script development / Gravatar Enlarge

Why would my script not work, even with no errors?
It's enabled, it's perfectly working code, but it wont work for me.
http://userscripts.org/scripts/show/35103
To test it, right click on my avatar and view image.
It should increase in size to 512x512 if the script is working.

 
Oct 7, 2008
JoeSimmons 182 posts

Topic: Script development / How to show new content in one area without page refresh.

Well change it to t=setTimeout(startTime, 500);
You will have to use the latter on your post if you need to send that function any arguments, but if you're just plainly calling the function, my script will suffice.

 
Oct 7, 2008
JoeSimmons 182 posts

Topic: Script development / zshare embed script plzz help

<object height="385" width="480">
<embed src="http://69.80.255.148/stream/b4f9e8e89c4f6b7cea0e1d00cd77aa53/1213739259/2591968/mp3mera2%40www.filmijoy.com.wmv" height="385" width="480">
</embed>
</object>

and you need a valid video source.

 
Oct 7, 2008
JoeSimmons 182 posts

Topic: Script development / How to show new content in one area without page refresh.

Just make a timed function to change the content text.

 
Oct 6, 2008
JoeSimmons 182 posts

Topic: Script development / getting value of an element.

My bad. Yeah I'd go with parseInt right around where you set coordX and coordY.

 
Oct 6, 2008
JoeSimmons 182 posts

Topic: Script development / getting value of an element.

var db = document.body.innerHTML;
var coordX = db.match(/\d+(?=,\d+\])/)[0];
var coordY = db.match(/\d+(?=\])/)[0];

sum = eval(coordX) + 1;
diff = eval(coordX) - 1;

Or you could just put parseInt's around the coord variables.

 
Oct 5, 2008
JoeSimmons 182 posts

Topic: Script development / XPath Question...

var toHide = $xM("/html/body/table/tbody/tr/td/table[3]/tbody/tr/td/table[4]/tbody/tr[47]", "/html/body/table/tbody/tr/td/table[3]/tbody/tr/td/table[4]/tbody/tr[48]", "/html/body/table/tbody/tr/td/table[3]/tbody/tr/td/table[4]/tbody/tr[49]");

The 3 expressions you entered in that command will be returned in that one array.

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / XPath Question...

Here's a function I just made.
You can put xpath queries separated by commas like normal arguments, and it will return an array of all the expression nodes in one array.

// XPath multiple, but the array returned is a normal array[x]
// Always uses unordered node snapshot
// Syntax: $xM("//a", "//img");
function $xM() {
  var i, x, arr = [], xpr;
  for(x=0; x<arguments.length; x++) {
  xpr = document.evaluate(arguments[x],document,null,6,null);
  for (i=0; i<xpr.snapshotLength; i++) {arr.push(xpr.snapshotItem(i));}
  }
  return arr;
}

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / XPath Question...

Add another pipe | to the xpath query and put your other query I believe.

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / Help with my script, please !!

Eres bienvenida

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / 'Raw' text (text without tags)

Read up on html entities.
And get the script Userscript comment helper.
To show < and > and ", you have to do &lt; and &gt; and &quot;

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Ideas and script requests / Change all "hidden" tags in HTML to "shown"

If you meant input boxes that have the type=hidden, then this will work for you...

// XPath but the array returned is a normal array[x]
// Syntax: $x("//a", 7);
function $x(p, type) {
  var i, arr = [], t = type || 6, xpr = document.evaluate(p,document,null,t,null);
  for (i = 0; item = xpr.snapshotItem(i); i++) {arr.push(item);}
  return arr;
}
var hidden=$x("//input[@type='hidden']");
for(var i=0; i<hidden.length; i++) {
hidden[i].type = 'text';
}

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / Simple script? string concatenation of text fields

Read up on html entities.
And get the script Userscript comment helper.
To show < and > and ", you have to do &lt; and &gt; and &quot;

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / XPath Question...

Yeah.

function toggleHidden(_node) {
if(_node) {_node.parentNode.removeChild(_node);}
}

This is a function by me to remove nodes through xpath...

// Remove nodes through xpath by JoeSimmons
// Syntax example: removeXP("img[contains(@src, 'ad.jpg')]");
function removeXP(xp) {
var i,x,XP=document.evaluate(xp,document,null,6,null);
for(i=0; i<XP.snapshotLength; i++) {x=XP.snapshotItem(i);x.parentNode.removeChild(x);}
}

And this is a function by me to remove an id...

// Remove element by id by JoeSimmons
// Syntax example: removeElemById("gbar");
function removeElemById(e) {
var _e = document.getElementById(e);
if(_e && _e.parentNode) {
_e.parentNode.removeChild(_e);
return true;
}
else {return false;}
}

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / Help with my script, please !!

unsafeWindow.bbfontstyle(var1,var2);

 
Oct 4, 2008
JoeSimmons 182 posts

Topic: Script development / getting value of an element.

var db = document.body.innerHTML;
var coordX = db.match(/\d+(?=,\d+\])/)[0];
var coordY = db.match(/\d+(?=\])/)[0];