User:Prunc

From Future Of Mankind
Revision as of 07:25, 10 March 2014 by Prunc (talk | contribs)

Things about me

Things about me written in Articles by Prunc.

Fairy Dust

FIGU AU/CA

/*******************************************************************
* Used on au.figu.org and ca.figu.org to convert html to wikitext. *
*******************************************************************/
var repeat;
function testing(){
	if (typeof jQuery != 'undefined'){
		clearInterval(repeat);
		afterLoad();
	//	console.log("jQuery loaded...");
	}else{
		
	};
};
if (typeof jQuery == 'undefined') {
	var newscript = document.createElement('script');
		newscript.type = 'text/javascript';
		newscript.async = true;
		newscript.src = '//code.jquery.com/jquery-2.1.0.min.js';
	(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
	repeat = setInterval(testing,250);
} else {
	afterLoad();
//	console.log("jQuery already present...");
}
function afterLoad(){

//	jQuery("table tr").each(function(){
//	 jQuery(this).find("td").eq(1).prependTo(jQuery(this))
//	})

	var str = "\n\n\n{|\n\n|-\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''English translation'''\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''Original German text'''\n\n";
	jQuery("table tr").each(function(){
	 str += "|-\n";
	 str += ( "| " + jQuery(this).find("td").eq(1).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
	 str += ( "| " + jQuery(this).find("td").eq(0).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
	 str += "\n";
	});
	str += "|-\n|}\n";
	console.log(str);

}

TheyFly.com

//http://theyfly.com/spiritual/rules/rules.htm
var str = "\n\n\n{|\n\n|-\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''English translation'''\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''Original German text'''\n\n";
jQuery("table").each(function(){
	for (var i=0;i<jQuery("table").find("tr").eq(1).find("p").length;i++) {
		str += "|-\n";
		str += ( "| " + jQuery(this).find("tr").eq(1).find("p").eq(i).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
		str += ( "| " + jQuery(this).find("td").eq(3).find("p").eq(i).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
		str += "\n";
	}
});

PDF

//PDF
var repeat;
function testing(){
	if (typeof jQuery != 'undefined'){
		clearInterval(repeat);
		afterLoad();
	//	console.log("jQuery loaded...");
	}else{
		
	};
};
if (typeof jQuery == 'undefined') {
	var newscript = document.createElement('script');
		newscript.type = 'text/javascript';
		newscript.async = true;
		newscript.src = 'http://code.jquery.com/jquery-2.1.0.min.js';
	(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]).appendChild(newscript);
	repeat = setInterval(testing,250);
} else {
	afterLoad();
//	console.log("jQuery already present...");
}
function afterLoad(){

	var str = "\n\n\n{|\n\n|-\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''English translation'''\n| style=\"width:50%; background:LightSkyBlue; color:Black\" | '''Original German text'''\n\n";
	var n = jQuery("#div2 p").length
	for (var i=0;i<n;i++) {
			str += "|-\n";
			str += ( "| " + jQuery("#div1 p").eq(i).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
			str += ( "| " + jQuery("#div2 p").eq(i).text().trim().replace(/\n+/gim,"").replace(/\s+/gim, ' ') + "\n" );
			str += "\n";
	}; 
	str += "|-\n|}\n";
	console.log(str);

}

Other stuff

var str = "";
$("table:not('#toc') tr").each(function(){
 var that = $(this).find("td").eq(0).find("a").attr("href");
 if (that != undefined) {
  str += "http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=" + that.substr(13,that.length) + "\n\n" ;
 }
});
console.log(str) ;

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=All_Seven_Forms_of_Prayer_by_Nokodemion

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Consciously_Develop_and_Use_Love,_Knowledge,_Wisdom_and_Feeling_for_Others

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=The_Human_Being_and_Destiny,_Yesterday_and_Today

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Desiderata_(Desirable_and_Vital_Items)

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=The_Teaching_%22Goblet_of_the_Truth%22_and_Spiritual_Teaching_in_General

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Doing_Something_for_the_Neighbour

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Thoughts_about_Worries_of_Yesterday,_Today_and_Tomorrow

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Weighty_Words_About_Death

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Basic_Rules_of_Man

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Life_And_Death_Are_Inherent_To_Each_Other

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Meditation_about_death_is_important

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Meditation_and_Life_Itself_are_the_Best_Teachers

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Human_being_of_the_Earth

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Human_Beings_Without_Work_Or_Other_Valuable_Activity_Go_to_Seed

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Ideas_of_Partnership

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=The_Philosophy_of_Life

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Wealth_of_the_Non-Gewalt_and_Profound_Spiritual_Teaching_Interpretations

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Sapere_Aude_(Dare_to_Exercise_Reason)

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Victors_and_Losers

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Silent_Devotion

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Ignorance,_Problems,_Frustration_and_Gewalt

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=And_there_shall_be_peace_on_earth...

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Im…ment_Lead_to_Hate_and_Anger,_and_an_Enemy_is_a_Very_Good_Tool_for_Learning

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Differences_Between_Man_and_Woman

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Prophecies_and_Predictions

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Fortune-telling,_Star-reading,_Clairvoyance_and_Self-fulfilment

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Warning_to_all_the_governments_of_Europe!

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=What_the_Human_Seeks

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=What_the_Plejaren_Wish_for_Earth_Humans

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=Anger_and_Rage

http://www.futureofmankind.co.uk/w/index.php?title=Special:PdfPrint&page=True_Love_has_its_Basis_in_Reality,_Not_in_Belief