I have the solution to this frustrating problem, and I have integrated it successfully in Twitter’s bootstrap (the irony?).
Step 1:
Download Twitter’s widget js file and put it in "YOUR_LOCAL_PATH/js"
Step 2:
Modifying the widget call script as so:
You should see that I have deleted the “p” variable and the protocol declaration and I’m pointing towards a local copy of Twitter’s widget js file.
Step 3:
Use something like http://jsbeautifier.org/ to make the code inside the widgets.js file readable. After that copy that code inside "YOUR_LOCAL_PATH/js/twitter.widgets.js"
Step 4.1 : Look for and modify like I suggested below:
dimensions: {
DEFAULT_HEIGHT: “600”,
DEFAULT_WIDTH: “100”, // modify this to be 100 - like 100%
NARROW_WIDTH: “100”, // modify this to be 100 - like 100%
MIN_WIDTH: “100”, // modify this to be 100 - like 100%
MIN_HEIGHT: “200”,
WIDE_MEDIA_PADDING: 81,
NARROW_MEDIA_PADDING: 16,
WIDE_MEDIA_PADDING_CL: 60,
NARROW_MEDIA_PADDING_CL: 12 },
Step 4.2 : Look for and modify like I suggested below:
From this: .frame.style.minWidth = s.dimensions.MIN_WIDTH + “px” to this
.frame.style.minWidth = s.dimensions.MIN_WIDTH + “%”
Step 5. Congratulations, you now have a responsive twitter widget! If they release new versions of the widget, just remake the steps I suggested!