/usr/share/tdiary/js/twitter_anywhere.js is in tdiary-contrib 3.2.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | /*
* twitter_anywhere.js : use Twitter@Anywhere
*
* Copyright (C) 2012 by tamoot <tamoot+tdiary@gmail.com>
* You can distribute it under GPL.
*/
$( function() {
// load config from tDiary plugin (twitter_anywhere.rb)
var config = $tDiary.plugin.twitter_anywhere;
// hovarcards
var expand = config.hovercards.expand_default;
$.each(config.selectors, function(i, css){
twttr.anywhere(function(twitter) {
twitter(css).hovercards(expand);
});
});
});
// tweet box
function showTweetBox(option) {
twttr.anywhere(function (T) {
T("#tweetbox").tweetBox(option);
});
}
|