Embed Tweets in an iframe - https://tf.rita.moe

support passing conversation param through

Changed files
+9 -3
+4 -1
index.html
···
<li><tt style="color: green;">theme</tt> - <a
href="https://dev.twitter.com/web/embedded-tweets/parameters">Theme</a> of
Tweet display (such as <tt>dark</tt>)
+
+
<li><tt style="color: green;">conversation</tt> - Disable showing previous
+
Tweet in a thread when set to <tt>none</tt>
</ul>
</p>
···
</p>
<iframe id="tweet_297462728598122498" border=0 frameborder=0
-
src="show?url=https%3A%2F%2Ftwitter.com%2Frob_pike%2Fstatus%2F1021913270922358784"
+
src="show?url=https%3A%2F%2Ftwitter.com%2Frob_pike%2Fstatus%2F1021913270922358784&conversation=none"
width=550 height=200></iframe>
<iframe id="tweet_281974362784022528" border=0 frameborder=0
+5 -2
show.html
···
var link_color = params["link_color"];
var theme = params["theme"];
var formatted_date = "Unknown date";
+
var conversation = params["conversation"];
var m;
if (m = url.match(/^(https?:)?\/\/(www\.)?twitter\.com\/([^\/]+)\//)) {
···
if (align)
t.align = align;
if (link_color)
-
t.data["link-color"] = link_color;
+
t.setAttribute("link-color", link_color);
if (theme)
-
t.data["theme"] = theme;
+
t.setAttribute("theme", theme);
+
if (conversation)
+
t.setAttribute("conversation", conversation);
var h = "";
if (author_name)