<?php
	$title = "smokinggun | SOURCE CODE";
	
	$nav_link = "/demos/index.php";
	$nav_image = "title_source.png";
	
# this should be stripped out when put on the live site
	require("../path_to_lib.php");

#
# tool for managaing catalog categories
# 

	require($path_to_lib."sg_main.php"); 		# main library

# include the html snippets for drawing the interface
	include($path_to_lib."html/public_html.php");

echo $public_header;

?>

Collection of tools for use with your browser. <b>These are not links</b><br>

<br><br>
<div class="col1">
	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';for(i=0;i<el.length;i++){void(t = el[i].href.toLowerCase()); if(t.indexOf('print') > -1 && t.indexOf('edition') < 0) {void(document.location=el[i].href)}};">Printer</a></b><br>
	Tries to find the the printer version of an article.<br>
	Tested on: NY Times, Salon, Washington Post, LA Times, The Guardian, The Economist*, SF Gate, and The New Yorker.<br>
	<br>
	* May not work in all areas of the site.
	</p>

	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';for(i=0;i<el.length;i++){void(out=out+'<a href='+el[i].href+'>'+el[i].innerHTML+'</a><br><br>\r\r')};d.outerHTML=el.length+' link on the page<br><br>'+out;">Links Only</a> v1.2 **</b><br>
	Shows only the links on a page.  Includes a count of all the links.
	</p>

	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('p'));out='';for(i=0;i<el.length;i++){void(out=out+'<p>'+el[i].innerHTML+'</p>\r\r')};d.innerHTML=out;">Clean Read</a></b><br>
	Removes non article text from news sites like CNN, NYTimes, Washington Post and News.com.  The will not work on all pages<br>
	</p>
	
	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('p'));out='';for(i=0;i<el.length;i++){void(out=out+'<p>'+el[i].innerHTML+'</p>\r\r')};d.innerHTML=out;'<table width=400><tr><td>'+out+'</td></tr></table>';">Clean Read</a> v1.2gh **</b><br>
	Same as above, but sets the column width to 400 pixels.
	</p>
	<p>
		** Thanks to Ben Winslow <b>rain <i>@</i> bluecherry <i>o</i> net</b> for sending in a Mozilla compatible version.
	</p>
	
	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('iframe'));for(i=0;i<el.length;i++){void(el[i].style.display='none')};void(el=d.getElementsByTagName('img'));for(i=0;i<el.length;i++){void(el[i].style.display='none')};void(el=d.getElementsByTagName('a'));for(i=0;i<el.length;i++){void(el[i].style.textDecoration='none');}">Zap</a> <b>v1.1</b></b><br>
	Removes underlines from links, images, iframes(these usually hold rich media ads).<br>
	</p>
	
	<p>
	<b><a class="non" href="javascript:void(d=document);void(el=d.getElementsByTagName('a'));out='';function go(u){d.location=u};a = new Array();for(i=0;i<el.length;i++){void(t = el[i].href.toLowerCase());if(t.indexOf('.pdf') > -1 && t.indexOf('javascript:') < 0) {void(a[a.length]=el[i].href);void(out=out+'<a href='+el[i].href+'>'+el[i].innerHTML+'</a> | <span style=\'color:#999999\'>'+el[i].href+'</span><br><br>\r\r')}};if (a.length == 0) alert('No PDFs Found');if (a.length == 1) go(a[0]);if (a.length > 1) d.innerHTML = out;">PDF</a></b><br>
	Goes to a PDF file on a page, or will create a list of links to PDF's if more than one is on the page.
	</p>


</div>
<div class="col2">
Drag the <b class="non">"links"</b> into your Links bar(Favorites on IE Mac, or Personal Bar in Netscape).
<br><br>
You may get a warning about placing them in you toolbar, but ignore that, after all what could possibly happen?  This is the internet, everything is well protected. <br>
	<br>
	<b>Requires:</b> Netscape 6*, or IE 5+<br>
	<br>

	These are known as a <a href="http://www.google.com/search?q=bookmarklets">bookmarklets</a>.<br>
	<br>
	*<i>Clean Read may not be working in Netscape 6.0 or Mozilla currently.</i>

<p>
I have created these as something of an experiment in web design.  How does eliminating or altering elements of a document affect its usability and design?  They are not very useful, but may prove fun to some.
</p>
<p>
If you find any bugs or have an idea please email <a href="mailto:<?php echo $EMAIL?>"><?php echo $EMAIL?></a>.
</p>
	
	
</div>

<div class="break">&nbsp</div>

</body>
</html>
