Page Not Found

in
Subscribe to Page Not Found 4 posts, 4 voices



Hans Hermann User
FirefoxWindows

Every time I click the Download High Quality or Download Low Quality Link a new facebook page pops up called "Page Not Found" and on the page it says "The page you requested was not found." along with a recommendation to check if my url is correct.

Am I doing something wrong? I'm using Greasemonkey on Firefox and it says the script is enabled.

 
scanime User
FirefoxWindows

Hans, this worked for me (at least for hd videos). Replace:
if(hd==true){
...
}
with:
if(hd === true){
	hd_video_url = hd_video_url.substring(hd_video_url.indexOf("highqual_src") + 15,hd_video_url.indexOf("lowqual_src") - 5);
	hd_video_url = searchAndReplace(hd_video_url, "\\u00252F", "/");	
	hd_video_url = searchAndReplace(hd_video_url, "\\u00253A", ":");	
	hd_video_url = searchAndReplace(hd_video_url, "\\u00253F", "?");	
	hd_video_url = searchAndReplace(hd_video_url, "\\u002526", "&");	
	hd_video_url = searchAndReplace(hd_video_url, "\\u00253D", "=");	

	hd_download_link.setAttribute('href',hd_video_url);
	hd_download_link.innerHTML = "Download High Quality
"; description_div.appendChild(hd_download_link); }
And at the top, above the line function download_video(){, add the function:
function searchAndReplace(haystack, needle, replacement) {
	var indexReplace = haystack.indexOf(needle);
	while(indexReplace > 0) {
		haystack = haystack.replace(needle, replacement);
		indexReplace = haystack.indexOf(needle);
	}

	return haystack;
}
 
AwryToast User
ChromeWindows

Scanime, the code that you talked about replacing/adding to doesn't seem to be there, or I just don't understand.

Where talking about replacing? I could see inserting your if(hd==true) into if(temp.search(/highqual_src/) != -1), but I'm really confused where searchAndReplace should go.

Any context or help would be greatly appreciated. Thanks.

Edit: I tried including the source code, and it came out a garbled mess, so I removed it.

 
Karthic Kumaran Script's Author
FirefoxWindows

Scanime, thanks for the tip.

I have updated the script to fix the issue.