Frog23 / Yahoo Pipes Export Link

// ==UserScript==
// @name        Yahoo Pipes Export Link
// @description Adds an Export Link in the context menu of a pipe in the Yahoo Pipes overview list
// @namespace   http://www.frog23.net
// @author      Frog23
// @include     http://pipes.yahoo.com/pipes/person.info?guid=*
// @include     http://pipes.yahoo.com/pipes/person.info?display=favorites&guid=*
// @include     http://pipes.yahoo.com/pipes/person.info?display=pipes&guid=*
// @include     https://pipes.yahoo.com/pipes/person.info?guid=*
// @include     https://pipes.yahoo.com/pipes/person.info?display=favorites&guid=*
// @include     https://pipes.yahoo.com/pipes/person.info?display=pipes&guid=*
// @version     1
// @grant       none
// @licence     MPL
// ==/UserScript==

var list = document.getElementsByClassName("actions");
for (var i = 0; i < list.length; i++) {
	var infoLi = list[i].firstElementChild.nextElementSibling;
	var parentUl = infoLi.parentNode;
	var exportLi = infoLi.cloneNode(true);
	var link = exportLi.firstElementChild
	link.setAttribute('href',link.getAttribute('href')+"&_out=json");
	link.innerHTML = "Export"
	parentUl.appendChild(exportLi)
}