Created
December 21, 2011 22:21
-
-
Save bycoffe/1507987 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaronbycoffe@us150633:~$ curl -I newtgingrich.com | |
HTTP/1.1 200 OK | |
Content-Length: 1037 | |
Content-Type: text/html | |
Content-Location: http://newtgingrich.com/redirect.htm | |
Last-Modified: Wed, 21 Dec 2011 19:35:56 GMT | |
Accept-Ranges: bytes | |
ETag: W/"c819afc217c0cc1:31c" | |
Server: Microsoft-IIS/6.0 | |
X-Powered-By: ASP.NET | |
Date: Wed, 21 Dec 2011 22:23:29 GMT | |
aaronbycoffe@us150633:~$ curl http://newtgingrich.com/redirect.htm | |
<script language=javascript> | |
//Variable for random number. | |
var i; | |
//Array for links. | |
var arLinks = new Array(); | |
//Change links to what you wish... and however many you want*... | |
// *Just be sure to increment the array element if you add more. | |
arLinks[0] = "http://www.theatlanticwire.com/politics/2011/12/gingrichs-campaign-still-looks-awful-lot-book-tour/45977/"; | |
arLinks[1] = "http://www.greektravel.com/"; | |
arLinks[2] = "http://www.washingtonpost.com/blogs/the-fix/post/gingrich-senior-aides-resign/2011/06/09/AGN77VNH_blog.html"; | |
arLinks[3] = "http://www.tiffany.com/?siteid=1"; | |
arLinks[4] = "http://www.youtube.com/watch?v=VaZFfQKWX54"; | |
arLinks[5] = "http://www.freddiemac.com/"; | |
arLinks[6] = "http://thinkprogress.org/politics/2009/09/11/60353/gingrich-porn/"; | |
arLinks[7] = "http://www.intrade.com/v4/markets/contract/?contractId=654836"; | |
//Create random number, based on number of elements in array. | |
i = Math.floor( Math.random() * arLinks.length ); | |
//Redirect | |
window.location = arLinks[i]; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment