Recent posts by JoeSimmons
|
5 hours ago
|
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
|
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
|
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
|
Topic: Ideas and script requests / Registration Notification That i means case insensitive. So if it's |
|
Oct 8, 2008
|
Topic: Script development / how can i purposely leave a variable blank Just simply put |
|
Oct 8, 2008
|
Topic: Script development / Gravatar Enlarge Hmm. Any way to fix that? |
|
Oct 8, 2008
|
Topic: Ideas and script requests / Registration Notification Ok midorocco I just fixed the script with what you want.
|
|
Oct 8, 2008
|
Topic: Userscripts.org discussion / Spam and malware Script copiers (copied from me):
|
|
Oct 7, 2008
|
Topic: Script development / Gravatar Enlarge Yeah I meant to put the second include as an exclude but didn't pay attention enough.
|
|
Oct 7, 2008
|
Topic: Script development / Gravatar Enlarge Why would my script not work, even with no errors?
|
|
Oct 7, 2008
|
Topic: Script development / How to show new content in one area without page refresh. Well change it to |
|
Oct 7, 2008
|
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
|
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
|
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
|
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
|
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
|
Topic: Script development / XPath Question... Here's a function I just made.
// 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
|
Topic: Script development / XPath Question... Add another pipe | to the xpath query and put your other query I believe. |
|
Oct 4, 2008
|
Topic: Script development / Help with my script, please !! Eres bienvenida |
|
Oct 4, 2008
|
Topic: Script development / 'Raw' text (text without tags) Read up on html entities.
|
|
Oct 4, 2008
|
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
|
Topic: Script development / Simple script? string concatenation of text fields Read up on html entities.
|
|
Oct 4, 2008
|
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
|
Topic: Script development / Help with my script, please !! unsafeWindow.bbfontstyle(var1,var2); |
|
Oct 4, 2008
|
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]; |
