Hi all, long-time Tiddlylurker, first time poster with what I think is a 
pretty straightforward question that I hope the community might help with… 
I'm more tinkerer than developer, and I've been trying to get embedded 
Tweets and Twitter profiles to display properly formatted within individual 
Tiddlers, using vanilla TW 5.0.13 and Twitter's embed code 
<https://dev.twitter.com/docs/embedded-tweets>:

<script>!function(d,s,id){var 
js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>


Apologies for not better documenting my attempts to date, but I note that if I 
try taking the embed quote from an individual Tweet and copying this into a 
Tiddler, it appears that the <script> tags are being converted to <safe-script> 
and not functioning - changing these tags back by live-editing page source in 
Safari Web Inspector works almost as expected (excessive whitespace shown at 
base of tweet, but I can live with this).


I've also been able to manually insert the code quoted above at the end of (I 
think) the boot shadow Tiddler, and have tweets display as anticipated on first 
open, but not subsequent opening of Tiddlers.


I've lastly attempted (per a combination of the info here 
<http://osdir.com/ml/tiddlywiki/2011-02/msg00422.html> and here 
<http://a-penguin-in-redmond.blogspot.com.au/2014/02/creating-baby-journal-with-tiddlywiki-5.html>)
 to setup the above as a macro and have it called and loaded with every 
ViewTemplate, but I have next to no Javascript knowledge and can't tell if I'm 
merely missing a brace or attempting something impossible.


Any suggestions greatly appreciated! Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to