Skip to content

Instantly share code, notes, and snippets.

@kwixilvr
kwixilvr / twitter-widget-generator.js
Last active December 14, 2015 21:59
Twitter widget generator: This script makes it easy to generate Twitter widget. It works at https://twitter.com/settings/widgets .
(function(doc, win){
if(!(
doc.URL.replace(/\/$/, "") === "https://twitter.com/settings/widgets" &&
!doc.getElementById("widgetGenerator")
)){
return;
}
var head = (doc.head || doc.getElementsByTagName("head")[0]),
loadScript = function(source, callback){