fails on fark.com

in
Subscribe to fails on fark.com 3 posts, 2 voices



ekbworldwide Scriptwright
FirefoxWindows

Waterboarding for dummies - Torture - Salon.com
http://www.salon.com/news/torture/index.html?st...

The script creates
http://www.salon.com/news/torture/index.html%3Fstory%3D/news/feature/2010/03/09/waterboarding_for_dummies

 
JoeSimmons Script's Author
FirefoxWindows

its not a fail. this script is for tracking links. that just links to a folder/page. there needs to be a whole site in the query parameter.

 
ekbworldwide Scriptwright
FirefoxWindows

I don't understand you. Oh well.

Anyway - it seems Fark uses a simple trick to screw the links up.

I just wrote this - and it works:

	var directLink = document.getElementsByClassName("headlineRow")[0].getElementsByTagName("a")[0].href;
	if (directLink) {
		directLink = directLink.match(/[?&]l=(http:\/\/[^&]+)/)[1];
		directLink = unescape(directLink);
		GM_log("directLink: " + directLink);
	}

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel