User:Danny van der Kleij/Free Wikileaks Pirate Radio: Difference between revisions

From XPUB & Lens-Based wiki
 
Line 5: Line 5:


=The programming part=
=The programming part=
If you want to use jquery with greasemonkey then you will need to use jquery 1.3.2, later versions will not work,


here is a regular expression tester for javascript.
[http://www.regular-expressions.info/javascriptexample.html]
and here is a compiler that makes your greasemonkey script into a .xpi firefox plug-in
dont forget to copy paste the jquery code from: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
above your own code.
http://arantius.com/misc/greasemonkey/script-compiler
<source lang="javascript">
<source lang="javascript">
// ==UserScript==
// ==UserScript==

Latest revision as of 01:18, 28 April 2011

Free Wikileaks Pirate Radio

radiosetup.jpg

Leakradio is a firefox plug-in that automatically takes the text of each wikileaks cable whenever you open these in your browser and reads it out loud using google translator's text to speech software. The wikileaks servers have been at risk for a while now, and the discussion remains solely based on the web, however what is released on the web can always be re-released. Free wikileaks pirate radio takes this plug-in and uses it to broadcast these cables over a free radio frequency and thus liberating wikileaks from its medium, the Internet. Tune in and listen, make your own tape back up or even re-broadcast the signal.

The programming part

If you want to use jquery with greasemonkey then you will need to use jquery 1.3.2, later versions will not work,

here is a regular expression tester for javascript. [1]

and here is a compiler that makes your greasemonkey script into a .xpi firefox plug-in dont forget to copy paste the jquery code from: http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js above your own code.

http://arantius.com/misc/greasemonkey/script-compiler

// ==UserScript==
// @name           LeakRadio
// @namespace      pzwart3.wdka.hro.nl
// @include        http://translate.google.com/*
// @include				 http://wikileaks.ch/cable*
// @require				 http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js
// ==/UserScript==

// set up some variables to use in the timer.
var ONESEC   = 1000 ;				
var ONETIME   = 10 * ONESEC ;		
var INTERVAL = 1 * ONETIME ;			
var textLength = 0;

// here we use Jquery to point to a specific part of the html document.
var yoo = $("pre").next().next().html();

var textArray = new Array();

// a regular expression to take out all the html tags.
yoo = yoo.replace(/&(lt|gt);/g, function (strMatch, p1){
 		 	return (p1 == "lt")? "<" : ">";
 		});
var yoo2 = yoo.replace(/<\/?[^>]+(>|$)/g, "");


textLength = yoo2.length * 0.01;
var msg = "";
for (var i = 0; i < textLength; i++)
{
textArray[i] = yoo2.substring(i * 100, (i + 1)* 100);
}
//yoo2 = yoo2.substr(0,100);

//textArray = yoo2;
//alert(textArray[41].length);

var tabText = 0
var urlText="http://translate.google.com/translate_tts?q=";			
openTab();

function openTab(){
	if(tabText < textLength){
		var finalText= urlText.concat(textArray[tabText - 1]);	
		window.setTimeout(function(){	
			alert(textArray[tabText].length);			
			GM_openInTab(finalText);
			//window.location.reload();
			nextTab();
		},
		INTERVAL);
	}
}
function nextTab(){
openTab();
tabText++;
}

Some Circuit Diagrams of FM transmitters

arx1262670643a.jpg

Components List: Resistors, 5%, 1/4W: 100R 1 470R 1 4K7 1 22K 1 39K 1 47K 2 1M 1

Capacitors: Trim cap 5-20pF, red – 1 5.6 pF ceramic – 1 10p ceramic – 2 47pF ceramic – 3 1nF ceramic – 1 20nF or 22nF ceramic – 2 100nF monoblock – 2

other RF transistor ZTX320 – 1 Small signal transistor BC547 – 2 6 turn tinned copper coil – 1 6 turn enamelled coil – 1 8 turn enamelled coil – 1 9V battery snap – 1 Electret microphone – 1 PCB-mounted SPDT switch – 1 Antenna wire 1.6m

Hacking a belkin fm transmitter

http://www.instructables.com/id/Belkin-Tunecast-II-FM-Transmitter-Mod/