Skip to content

Instantly share code, notes, and snippets.

@kwixilvr
kwixilvr / twitter-widget-generator.js
Last active Dec 14, 2015
Twitter widget generator: This script makes it easy to generate Twitter widget. It works at https://twitter.com/settings/widgets .
View twitter-widget-generator.js
(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){