Archived Comments (locked)
|
|
The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008) |
|
|
anybody got any code that would work for imagebam?? |
|
|
this makes shareapic work for me {
|
|
|
A few months ago I did a simple modification to the shareapic part of the script for the new naming convention and it seems to work most of the time (though sometimes you will get a 404 or Forbidden error).
|
|
|
Do you think you could add support for Joggs.com? Its not an imagehost but itd be nice if clicking on the thumbnails would go straight to the images. |
|
|
Any possibility in an update for this please so that it works with places like hidebehind? It's a great script but stopped working for various sites. Thanks. |
|
|
Line 295 of your script is not correct. Images are not hosted on www.shareapic.net, they are on images.shareapic.net. |
|
|
nothing happens on hidebehind.com :( |
|
|
CAN ANYBODY HELP I MADE A JAVASCRIPT FOR MY COMMUNITY ITS WORKING FINE BUT I WANT BY ONE CLICK IN DESCRIPTION OF COMMUNITY ....HOW CAN WE DO THAT PLZZZ HELP ME OUT |
|
|
Thanks for your script! :) Here is the code to add support for yourfilehost images.
|
|
|
Are there any chances this script will work in Opera browser? :) |
|
|
thanks for updating arvid - this script is a real time saver and 'annoyance avoider' |
|
|
Sorry for being slow. Fixed support for uploadem. Thanks theaulddubliner and Thor. |
|
|
yay !!! that works great - thanks thor |
|
|
Ok theaulddubliner, it's appear that uploadem have changed another time ;-)
{
name: 'uploadem.com',
url_regex: /^http:\/\/(.*?\.)?uploadem\.com\/view.php\?/,
xpath: "id('myright')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new RegExp(/^http:\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + thres[2] + "/" + thres[3];
}
return false;
}
}
P.S: nice girls ;-) |
|
|
Ok theaulddubliner, it's appear that uploadem have changed another time ;-)
{
name: 'uploadem.com',
url_regex: /^http:\/\/(.*?\.)?uploadem\.com\/view.php\?/,
xpath: "id('myright')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new RegExp(/^http:\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + thres[2] + "/" + thres[3];
}
return false;
}
}
P.S: nice girls ;-) |
|
|
i was missing the '}' but it still isn't working for me :( here's a couple of links that don't work:
thanks for your help Thor |
|
|
Hi theaulddubliner, i think you have a missing "}" after "return false"
{ name: 'uploadem.com',
url_regex: /^http:\/\/(.*?\.)?uploadem\.com\/view.php\?/,
xpath: "id('showcode')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new RegExp(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + thres[2] + "/" + thres[3];
}
return false;
}
}
anyway if you have once again the problem, post the "not working" url so i can try that ... |
|
|
I must be missing something Thor as it still ain't working for me. I have the following: { name: 'uploadem.com',
url_regex: /^http:\/\/(.*?\.)?uploadem\.com\/view.php\?/,
xpath: "id('showcode')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new RegExp(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + thres[2] + "/" + thres[3];
}
return false;
}
|
|
|
Yes, it work for me ;-)
var thRegex = new Regex(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/); with this line var thRegex = new RegExp(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/); |
|
|
Yes, it work for me ;-)
|
|
|
thanks for posting thor but that ain't doing it for me - is it definitely working for you ? |
|
|
For the new uploadem.com search "uploadem" in the script and modify as follow (the first part from /* to */ is the old code).
/* name: 'uploadem.com',
url_regex: /^http:\/\/(www\.)?uploadem\.com\/view\//,
xpath: "id('showcode')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new Regex(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/th\/(.*?)\/(.*)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + res[2] + "/" + thres[3] + "/" + res[4];
}
return false;
}
*/
name: 'uploadem.com',
url_regex: /^http:\/\/(.*?\.)?uploadem\.com\/view.php\?/,
xpath: "id('showcode')/p[@align='center']/a/img",
redirect: true,
rewrite: function (res, link) {
var th = link.getElementsByTagName('img');
if (th = th[0]) {
var thRegex = new Regex(/^http\/\/(.*?)\.uploadem\.com\/(.*?)\/(.*?)$/);
var thres;
if (thres = thRegex.exec(th.getAttribute('src')))
return "http://" + thres[1] + ".uploadem.com/" + thres[2] + "/" + thres[3];
}
return false;
}
enjoy |
|
|
uploadem.com is no longer working arvid here's a couple of links for you to do your magic on: http://www.uploadem.com/view.php?view=101000, http://www.uploadem.com/view.php?view=101082 thanks |
|
|
Author: Please check out User Script Updates - simply update the header of your script and your users will be able to receive change-notification when you improve this script |