Post doesn't exist
|
|
from: http://www.news1.co.il/BringHtmlDoc.aspx?docid=174754&subjectid=1
from:http://www.news1.co.il/BringHtmlDoc.aspx?docid=22024&subjectId=3
how to change any suggestions... see also: ?.jpg |
|
|
I'm not sure why you need that, since its automatic...
l = document.location;
n1 = l.match(/[0-9]+[0-9]/);
n2 = l.match(/[0-9]*$/);
document.location.replace("http://www.news1.co.il/Archive/00" + n2[0] + "-D-" + n1[0] + "-00.html");
|
|
|
It's not working for me. maybe I'm doing something wrong? the link is in this page from: http://www.news1.co.il/BringHtmlDoc.aspx?docid=22024&subjectId=3to: http://www.news1.co.il/Archive/003-D-22024-00.html![]() and about your query: because this is a very heavy and leaking site (this is the only Jewish/Hebraic NON-Fascist site in Israel -- bad luck) |
|
|
Edit: Yes I had forgot to close a parenthesis, thanks, I write them on the fly without testing them, but the script should work now. |
|
|
not working :( btw, |
|
|
still, not working... I need a script to do the mentioned above on the links on a page @Aquilax: your script is affecting this page, btw. |
|
|
links = document.getElementsByTagName("a");
for(i = 0; i < links.length; i++) {
ref = links[i].href;
n1 = ref.match(/[0-9]+[0-9]/);
n2 = ref.match(/[0-9]*$/);
if(n1 && n2 && ref.match("BringHtmlDoc")) ref = "http://www.news1.co.il/Archive/00" + n2[0] + "-D-" + n1[0] + "-00.html";
links[i].href = ref;
}
|
|
|
Yeah. The redirecting is automatic already....
|
|
|
I'm sooooooooo HAPPY ^_^ |
|
|
JoeSimmons is more specific as it is working only on News1.co.ilVIPPER can also work on Us.o, for instance...thank you very much guys ;) |
|
|
Just change the included pages; my script will work on any page.
|
|
|
It is not working at this current page (where I'm write on right now). It works at this page though
It is not working at this page (joenotworkingdn6.png). See the main page -- not working on all the links, for some reason (see this snapshot). And last but not least, maybe there is a conflict with one or more other script of mine? (I already disabled the other 2 NEWS1 scripts). |
|
|
Nothing is wrong with the a tag, you have to put <a href="LINK HERE">LINK TEXT HERE</a> |
|
|
Whoops! I did [edit:] So what about your script (is it only me or the script itself?)? |
|
|
Oh it's because some links have DocId and the script is looking for docid (case sensitive)
|
|
|
works :D |
|
|
Cool. Glad to help. |
