lemoogle / Sample Code for IOD

// ==UserScript==
// @name         Sample Code for IOD
// @namespace    http://idolondemand.com/
// @version      0.1
// @description  Show sample code for idolondemand try its
// @author       You
// @match        https://www.idolondemand.com/developer/apis/*
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js
// @grant        none
// ==/UserScript==



$('#api-curl').append($('<button class="sample-code btn btn-primary btn-hp">Show Me Sample Code</button>'))

$('.sample-code').unbind('click');

$('.sample-code').click(function(){
var iframeurl="https://lemoogle.com/?apiurl="+encodeURIComponent($('.curl-url').text().replace(/\"/g,''))
$('#api-curl iframe').remove()
$('#api-curl').append($('<iframe src="'+iframeurl+'" frameborder="0" scrolling="no" width="100%" height="500px" seamless>'))
})