// ==UserScript==
// @name X to U
// @description Replace 𝕏 to U(Inspired by Ryu to Sobakasu no Hime).Tampermonkey userscript ONLY.
// @version 3.0.0
// @author Origin:yakisova41 Fork:NTE
// @namespace NTE
// @match https://twitter.com/*
// @match https://X.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=X.com
// @grant unsafeWindow
// @run-at document-start
// @license MIT
// ==/UserScript==
"use strict";
const paths = {
xLogoPath:
"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",
loadingXLogoPath:
"M14.258 10.152L23.176 0h-2.113l-7.747 8.813L7.133 0H0l9.352 13.328L0 23.973h2.113l8.176-9.309 6.531 9.309h7.133zm-2.895 3.293l-.949-1.328L2.875 1.56h3.246l6.086 8.523.945 1.328 7.91 11.078h-3.246zm0 0",
birdPath:
"M3.63 0C5.4269 0 7.2237 0 9.075 0 9.087.4702 9.099.9403 9.1113 1.4248 9.1688 3.5465 9.2352 5.6679 9.3019 7.7894 9.3206 8.5295 9.3393 9.2696 9.3586 10.0321 9.382 10.7379 9.4054 11.4437 9.4295 12.1709 9.4485 12.8236 9.4675 13.4762 9.4871 14.1487 9.5268 15.8254 9.5268 15.8254 10.89 16.94 13.0474 16.8407 13.0474 16.8407 15.125 16.335 17.2026 15.8293 15.8586 13.4757 15.9214 11.6982 15.9468 11.0197 15.9721 10.3412 15.9982 9.6422 16.022 8.9309 16.0458 8.2197 16.0703 7.4869 16.0964 6.7709 16.1226 6.055 16.1495 5.3174 16.2138 3.545 16.2755 1.7726 16.335 0 18.1319 0 19.9287 0 21.78 0 21.8331 2.3317 21.8651 4.6632 21.8934 6.9953 21.9086 7.6524 21.9239 8.3094 21.9395 8.9864 21.9829 13.7456 21.5861 16.7499 18.5281 20.5322 16.0951 22.3615 13.3058 22.2286 10.3724 22.1179 7.9527 21.6881 6.675 20.8771 4.944 19.1804 3.4345 16.9866 3.5582 14.6436 3.5709 12.0527 3.5729 11.3508 3.5748 10.6489 3.5768 9.9258 3.5819 9.1958 3.587 8.4658 3.5922 7.7138 3.5949 6.9744 3.5976 6.2351 3.6005 5.4734 3.6076 3.6489 3.6175 1.8245 3.63 0Z",
homePath:
"M21.591 7.146L12.52 1.157c-.316-.21-.724-.21-1.04 0l-9.071 5.99c-.26.173-.409.456-.409.757v13.183c0 .502.418.913.929.913h6.638c.511 0 .929-.41.929-.913v-7.075h3.008v7.075c0 .502.418.913.929.913h6.639c.51 0 .928-.41.928-.913V7.904c0-.301-.158-.584-.408-.758zM20 20l-4.5.01.011-7.097c0-.502-.418-.913-.928-.913H9.44c-.511 0-.929.41-.929.913L8.5 20H4V8.773l8.011-5.342L20 8.764z",
homeActivePath:
"M21.591 7.146L12.52 1.157c-.316-.21-.724-.21-1.04 0l-9.071 5.99c-.26.173-.409.456-.409.757v13.183c0 .502.418.913.929.913H9.14c.51 0 .929-.41.929-.913v-7.075h3.909v7.075c0 .502.417.913.928.913h6.165c.511 0 .929-.41.929-.913V7.904c0-.301-.158-.584-.408-.758z",
oldHomePath:
"M12 9c-2.209 0-4 1.791-4 4s1.791 4 4 4 4-1.791 4-4-1.791-4-4-4zm0 6c-1.105 0-2-.895-2-2s.895-2 2-2 2 .895 2 2-.895 2-2 2zm0-13.304L.622 8.807l1.06 1.696L3 9.679V19.5C3 20.881 4.119 22 5.5 22h13c1.381 0 2.5-1.119 2.5-2.5V9.679l1.318.824 1.06-1.696L12 1.696zM19 19.5c0 .276-.224.5-.5.5h-13c-.276 0-.5-.224-.5-.5V8.429l7-4.375 7 4.375V19.5z",
oldHomeActivePath:
"M12 1.696L.622 8.807l1.06 1.696L3 9.679V19.5C3 20.881 4.119 22 5.5 22h13c1.381 0 2.5-1.119 2.5-2.5V9.679l1.318.824 1.06-1.696L12 1.696zM12 16.5c-1.933 0-3.5-1.567-3.5-3.5s1.567-3.5 3.5-3.5 3.5 1.567 3.5 3.5-1.567 3.5-3.5 3.5z"
};
const colors = {
UColor: "rgb(29, 155, 240)",
loadingBirdColor: "rgba(29,161,242,1.00)",
};
// prettier-ignore
const i18n = {"ar-x-fm":{"f70a36d0":"تغريد الكل","d25289b4":"مُعاد تغريدها بواسطة","bab1f8b0":"التغريدات","h99e9c95":"return[\"قام \",\" بإعادة تغريدها\"]","d2c7a41c":"غرّدي ردَكِ","e2414184":"return\"تغريد\"+n(e.count,\"ات\",\"ة\",\"ة\",\"ة\",\"تا\",\"ة\")+\" اقتباس\"","hb7b0cea":"return e.retweetCount+\" إعاد\"+n(e.retweetCount,\"ات\",\"ة\",\"ة\",\"ة\",\"تا\",\"ة\")+\" تغريد\"","bd7c039f":"تغريدات اقتباس","bea869b3":"غرّدي","hdf72269":"ردّ","e349147b":"ماذا يحدث؟","f3bbbb87":"التراجع عن التغريدة","c9d7235d":"اقتباس التغريدة","d6c85149":"إعادة التغريد","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") غرّد:\\n\"+e.tweet","d6917e0c":"return\"عرض \"+e.count+\" تغريد\"+n(e.count,\"ات\",\"ة\",\"ة\",\"ة\",\"تين\",\"ة\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"bg":{"f70a36d0":"Туитване на всички","d25289b4":"Ретуитнат от","bab1f8b0":"Туитове","h99e9c95":"return[\"\",\" ретуитна\"]","d2c7a41c":"Отговори с туит","e2414184":"return\"\"+n(e.count,\"Цитиране на туита\",\"Туитове с цитат\")","hb7b0cea":"return e.retweetCount+\" ретуит\"+n(e.retweetCount,\"\",\"а\")","bd7c039f":"Туитове с цитат","bea869b3":"Туит","hdf72269":"Отговор","e349147b":"Какво се случва?","f3bbbb87":"Отмяна на ретуитването","c9d7235d":"Цитиране на туита","d6c85149":"Ретуитване","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0c":"return\"Показване на \"+e.count+\" туит\"+n(e.count,\"\",\"а\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"bn":{"f70a36d0":"সব টুইট করুন","d25289b4":"পুনঃ টুইট করেছেন","bab1f8b0":"টুইটগুলি","h99e9c95":"return[\"\",\" পুনঃ টুইট করেছেন\"]","d2c7a41c":"আপনার উত্তর টুইট করুন","e2414184":"return\"টুইট উদ্ধৃত\"+a(e.count,\" করুন\",\"িগুলো\")","hb7b0cea":"return e.retweetCount+\" পুনঃ\"+a(e.retweetCount,\" টুইট করুন\",\"টুইটগুলো\")","bd7c039f":"টুইট উদ্ধৃতিগুলো","hdf72269":"উত্তর","e349147b":"কী ঘটছে?","f3bbbb87":"পুনঃ টুইট পুর্বাবস্থায় ফেরান","c9d7235d":"টুইট উদ্ধৃত করুন","d6c85149":"পুনঃটুইট","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") টুইট করেছেন: \"+e.tweet","d6917e0c":"return e.count+\" টুইট\"+a(e.count,\"\",\"গুলো\")+\" দেখান\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"bea869b3":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ca":{"f70a36d0":"Tuita-ho tot","d25289b4":"Retuitat per","bab1f8b0":"Tuits","h99e9c95":"return[\"\",\" ha retuitat\"]","d2c7a41c":"Tuita una resposta","e2414184":"return\"\"+r(e.count,\"Cita el tuit\",\"Tuits amb cita\")","hb7b0cea":"return e.retweetCount+\" Retuit\"+r(e.retweetCount,\"\",\"s\")","bd7c039f":"Tuits amb cita","bea869b3":"Tuita","hdf72269":"Respon","e349147b":"Què passa?","f3bbbb87":"Desfés el retuit","c9d7235d":"Cita el tuit","d6c85149":"Retuit","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") ha tuitat: \"+e.tweet","d6917e0c":"return\"Mostra \"+e.count+\" Tuit\"+r(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"cs":{"f70a36d0":"Tweetnout vše","d25289b4":"Retweetnuto uživateli","bab1f8b0":"Tweety","h99e9c95":"return[\"Uživatel \",\" retweetnul\"]","d2c7a41c":"Tweetnout odpověď","e2414184":"return\"\"+n(e.count,\"Tweety s citací\",\"Tweety s citací\",\"Citovat Tweet\",\"Tweety s citací\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+n(e.retweetCount,\"y\",\"y\",\"\",\"ů\")","bd7c039f":"Tweety s citací","bea869b3":"Tweet","hdf72269":"Odpovědět","e349147b":"Co se právě děje?","f3bbbb87":"Zrušit Retweet","c9d7235d":"Citovat Tweet","d6c85149":"Retweetnout","d91695cb":"return\"Uživatel \"+e.fullName+\" (@\"+e.screenName+\") tweetnul: \"+e.tweet","d6917e0c":"return\"Ukázat \"+e.count+\" \"+n(e.count,\"tweety\",\"tweety\",\"Tweet\",\"tweetů\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"da":{"f70a36d0":"Tweet alt","d25289b4":"Retweetet af","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" retweetede\"]","d2c7a41c":"Tweet dit svar","e2414184":"return\"Cit\"+i(e.count,\"ér Tweet\",\"at-Tweets\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+i(e.retweetCount,\"\",\"s\")","bd7c039f":"Citat-Tweets","bea869b3":"Tweet","hdf72269":"Svar","e349147b":"Hvad sker der?","f3bbbb87":"Fortryd Retweet","c9d7235d":"Citér Tweet","d6c85149":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") tweetede: \"+e.tweet","d6917e0c":"return\"Vis \"+e.count+\" Tweet\"+i(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"de":{"f70a36d0":"Alle Un","d25289b4":"Retweetet von","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" hat retweetet\"]","d2c7a41c":"Ue deine Antwort","e2414184":"return\"\"+r(e.count,\"Tweet zitieren\",\"Zitierte Tweets\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+r(e.retweetCount,\"\",\"s\")","bd7c039f":"Zitierte Tweets","bea869b3":"Un","hdf72269":"Antworten","e349147b":"Was gibt's Neues?","f3bbbb87":"Retweet rückgängig machen","c9d7235d":"Tweet zitieren","d6c85149":"Retweeten","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0c":"return e.count+\" Tweet\"+r(e.count,\"\",\"s\")+\" anzeigen\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"el":{"f70a36d0":"Δημοσίευση όλων ως Tweet","d25289b4":"Έγινε Retweet από","bab1f8b0":"Tweet","h99e9c95":"return[\"Ο χρήστης \",\" έκανε Retweet\"]","d2c7a41c":"Κάντε Tweet με την απάντησή σας","e2414184":"return\"\"+n(e.count,\"Παράθεση Tweet\",\"Tweet με παράθεση\")","hb7b0cea":"return e.retweetCount+\" Retweet\"","bd7c039f":"Tweet με παράθεση","bea869b3":"Tweet","hdf72269":"Απάντηση","e349147b":"Τι συμβαίνει;","f3bbbb87":"Αναίρεση Retweet","c9d7235d":"Παράθεση Tweet","d6c85149":"Retweet","d91695cb":"return\"Ο χρήστης \"+e.fullName+\" (@\"+e.screenName+\") έγραψε το Tweet: \"+e.tweet","d6917e0c":"return\"Εμφάνιση \"+e.count+\" Tweet\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"en-GB":{"f70a36d0":"Tweet all","d25289b4":"Retweeted by","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" Retweeted\"]","d2c7a41c":"Tweet your reply","e2414184":"return\"Quote Tweet\"+n(e.count,\"\",\"s\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+n(e.retweetCount,\"\",\"s\")","bd7c039f":"Quote Tweets","bea869b3":"Tweet","hdf72269":"Reply","e349147b":"You will be “U”. “U” will be you. “U” will be everything.","f3bbbb87":"Undo Retweet","c9d7235d":"Quote Tweet","d6c85149":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted: \"+e.tweet","d6917e0c":"return\"Show \"+e.count+\" Tweet\"+n(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"en":{"f70a36d0":"Tweet all","d25289b4":"Retweeted by","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" Retweeted\"]","d2c7a41c":"Tweet your reply","e2414185":"return\"Quote Tweet\"+n(e.count,\"\",\"s\")","hb7b0ceb":"return e.retweetCount+\" Retweet\"+n(e.retweetCount,\"\",\"s\")","bd7c0390":"Quote Tweets","bea869b4":"Tweet","d17df548":"Reply","e349147b":"You will be “U”. “U” will be you. “U” will be everything.","e349147c":"You will be “U”. “U” will be you. “U” will be everything.","fa9ce7f4":"Undo Retweet","c9d7235e":"Quote Tweet","d6c8514a":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return\"Show \"+e.count+\" Tweet\"+n(e.count,\"\",\"s\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"es":{"f70a36d0":"Twittear todo","d25289b4":"Retwitteado por","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" lo retwitteó\"]","d2c7a41c":"Twittea tu respuesta","e2414184":"return\"\"+r(e.count,\"Citar Tweet\",\"Tweets citados\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+r(e.retweetCount,\"\",\"s\")","bd7c039f":"Tweets citados","bea869b3":"Twittear","hdf72269":"Responder","e349147b":"¿Qué está pasando?","f3bbbb87":"Deshacer Retweet","c9d7235d":"Citar Tweet","d6c85149":"Retwittear","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") twitteó: \"+e.tweet","d6917e0c":"return\"Mostrar \"+e.count+\" Tweet\"+r(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"fa":{"f70a36d0":"توییت به همه","d25289b4":"بازتوییت شد توسط","bab1f8b0":"توييتها","h99e9c95":"return[\"\",\" بازتوییت کرد\"]","d2c7a41c":"پاسختان را توییت کنید","e2414184":"return\"نقلتوییت\"","hb7b0cea":"return e.retweetCount+\" بازتوییت\"","bd7c039f":"نقلتوییتها","bea869b3":"توییت","hdf72269":"پاسخ","e349147b":"چه خبر است؟","f3bbbb87":"لغو بازتوییت","c9d7235d":"نقلتوییت","d6c85149":"بازتوییت","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") توییت کرد: \"+e.tweet","d6917e0c":"return\"نمایش \"+e.count+\" تو\"+f(e.count,\"یی\",\"يي\")+\"ت\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"eu":{"f70a36d0":"Txiotu guztiak","d25289b4":"Bertxiotua:","bab1f8b0":"Txioak","h99e9c95":"return[\"\",\" erabiltzaileak bertxiotu du\"]","d2c7a41c":"Txiokatu erantzuna","e2414184":"return\"Quote Tweet\"+n(e.count,\"\",\"s\")","hb7b0cea":"return e.retweetCount+\" bertxio\"","bd7c039f":"Aipatu txioak","bea869b3":"Txio","hdf72269":"Erantzun","e349147b":"Zer ari da gertatzen?","f3bbbb87":"Desegin birtxiokatzea","c9d7235d":"Txioa apaitu","d6c85149":"Bertxiotu","d91695cb":"return e.fullName+\"(e)k (@\"+e.screenName+\") Txiokatu du: \"+e.tweet","d6917e0c":"return\"Show \"+e.count+\" Tweet\"+n(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"fi":{"f70a36d0":"Twiittaa kaikki","d25289b4":"Uudelleentwiitannut","bab1f8b0":"Twiitit","h99e9c95":"return[\"\",\" uudelleentwiittasi\"]","d2c7a41c":"Twiittaa vastauksesi","bd7c039f":"Twiitin lainaukset","bea869b3":"Twiittaa","hdf72269":"Vastaa","e349147b":"Mitä tapahtuu?","f3bbbb87":"Kumoa uudelleentwiittaus","c9d7235d":"Twiitin lainaus","d6c85149":"Uudelleentwiittaa","e2414184":null,"e2414185":null,"hb7b0ceb":null,"hb7b0cea":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d91695cb":null,"d6917e0c":null,"d6917e0d":null},"fr":{"f70a36d0":"Tout tweeter","d25289b4":"Retweeté par","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" a retweeté\"]","d2c7a41c":"Tweetez votre réponse.","e2414185":"return\"\"+s(e.count,\"Citer le Tweet\",\"Tweets cités\")","hb7b0ceb":"return e.retweetCount+\" Retweet\"+s(e.retweetCount,\"\",\"s\")","bd7c0390":"Tweets cités","bea869b4":"Tweeter","d17df548":"Répondre","e349147c":"Quoi de neuf ?","fa9ce7f4":"Annuler le Retweet","c9d7235e":"Citer le Tweet","d6c8514a":"Retweeter","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") a tweeté : \"+e.tweet","d6917e0d":"return\"Voir \"+e.count+\" Tweet\"+s(e.count,\"\",\"s\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"ga":{"f70a36d0":"Tweetáil gach rud","d25289b4":"Atweetáilte ag","bab1f8b0":"Tweetanna","h99e9c95":"return[\"Rinne \",\" Atweetáil\"]","d2c7a41c":"Tweetáil do Fhreagra","bd7c0390":"Luaigh Tvuíteanna","bea869b4":"Tweet","d17df548":"Freagair","e349147c":"Cad atá ag tarlú?","fa9ce7f4":"Cuir an Atweet ar ceal","c9d7235e":"Cuir Ráiteas Leis","d6c8514a":"Atweetáil","e2414184":null,"e2414185":null,"hb7b0ceb":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d91695cb":null,"d6917e0c":null,"d6917e0d":null},"gl":{"f70a36d0":"Chiar todo","d25289b4":"Rechouchiado por","bab1f8b0":"Chíos","h99e9c95":"return[\"\",\" rechouchiou\"]","d2c7a41c":"Chía a túa resposta","e2414184":"return\"Quote Tweet\"+r(e.count,\"\",\"s\")","hb7b0cea":"return e.retweetCount+\" rechouchío\"+t(e.retweetCount,\"\",\"s\")","bd7c039f":"Chíos citados","bea869b3":"Chío","hdf72269":"Responder","e349147b":"Que está a pasar?","f3bbbb87":"Desfacer rechouchío","c9d7235d":"Citar chío","d6c85149":"Rechouchiar","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") chiou:\\n\"+e.tweet","d6917e0c":"return\"Show \"+e.count+\" Tweet\"+r(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"gu":{"f70a36d0":"બધાને ટ્વીટ કરો","d25289b4":"આમની દ્વારા પુનટ્વીટ કરવામાં આવી","bab1f8b0":"ટ્વીટ્સ","h99e9c95":"return[\"\",\"એ પુનટ્વીટ કરી\"]","d2c7a41c":"તમારા પ્રત્યુતરને ટ્વીટ કરો","e2414184":"return\"અવતરણની સાથે ટ્વીટ\"+n(e.count,\" કરો\",\"્સ\")","hb7b0cea":"return e.retweetCount+\" પુનટ્વીટ\"+n(e.retweetCount,\"\",\"્સ\")","bd7c039f":"અવતરણની સાથે ટ્વીટ્સ","bea869b3":"ટ્વીટ","hdf72269":"પ્રત્યુતર","e349147b":"શું ચાલી રહ્યું છે?","f3bbbb87":"પુનટ્વીટને પૂર્વવત કરો","c9d7235d":"અવતરણની સાથે ટ્વીટ કરો","d6c85149":"પુનટ્વીટ","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") એ ટ્વીટ કરી: \"+e.tweet","d6917e0c":"return\"બતાવો \"+e.count+\" ટ્વીટ\"+n(e.count,\"\",\"્સ\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"he":{"f70a36d0":"צייץ הכל","d25289b4":"צויץ מחדש על־ידי","bab1f8b0":"ציוצים","h99e9c95":"return[\"\",\" צייץ מחדש\"]","d2c7a41c":"צייץ את התשובה שלך","e2414184":"return\"צי\"+c(e.count,\"וץ ציטוט\",\"טוט ציוץ\",\"וץ ציטוט\",\"וץ ציטוט\")","hb7b0cea":"return e.retweetCount+\" ציו\"+c(e.retweetCount,\"צים\",\"ץ\",\"צים\",\"צים\")+\" מחדש\"","bd7c039f":"ציוצי ציטוט","bea869b3":"צייץ","hdf72269":"השב","e349147b":"מה קורה?","f3bbbb87":"ביטול ציוץ מחדש","c9d7235d":"ציטוט ציוץ","d6c85149":"צייץ מחדש","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") צייץ: \"+e.tweet","d6917e0c":"return\"הצג \"+e.count+\" ציו\"+c(e.count,\"צים\",\"ץ\",\"צים\",\"צים\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"hi":{"f70a36d0":"सभी ट्वीट करें","d25289b4":"इनके द्वारा रीट्वीट किया गया","bab1f8b0":"ट्वीट","h99e9c95":"return[\"\",\" ने रीट्वीट किया\"]","d2c7a41c":"अपना जवाब ट्वीट करें","e2414185":"return\"कोट ट्वीट\"+n(e.count,\"\",\"्स\")","hb7b0ceb":"return e.retweetCount+\" रीट्वीट\"+n(e.retweetCount,\"\",\"्स\")","bd7c0390":"कोट ट्वीट्स","bea869b4":"ट्वीट करें","d17df548":"जवाब दें","e349147c":"क्या हो रहा है?","fa9ce7f4":"रीट्वीट को पूर्ववत करें","c9d7235e":"ट्वीट क्वोट करें","d6c8514a":"रीट्वीट करें","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") ने ट्वीट किया: \"+e.tweet","d6917e0d":"return e.count+\" ट्वीट\"+n(e.count,\"\",\"्स\")+\" दिखाएं\"","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"hr":{"f70a36d0":"Tweetaj sve","d25289b4":"Korisnici koji su proslijedili Tweet","bab1f8b0":"Tweetovi","h99e9c95":"return[\"\",\" proslijedio/la je Tweet\"]","d2c7a41c":"Pošalji Tweet s odgovorom","e2414185":"return\"\"+t(e.count,\"citirana tweeta\",\"Citiraj Tweet\",\"citiranih tweetova\")","hb7b0ceb":"return e.retweetCount+\" proslijeđen\"+t(e.retweetCount,\"a tweeta\",\"i Tweet\",\"ih tweetova\")","bd7c0390":"Citirani tweetovi","bea869b4":"Tweet","d17df548":"Odgovori","e349147c":"Što se događa?","fa9ce7f4":"Poništi prosljeđivanje tweeta","c9d7235e":"Citiraj Tweet","d6c8514a":"Proslijedi tweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") objavio/la je Tweet: \"+e.tweet","d6917e0d":"return\"Prikaži \"+e.count+\" \"+t(e.count,\"tweeta\",\"Tweet\",\"tweetova\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"hu":{"f70a36d0":"Tweet küldése mindenkinek","d25289b4":"Retweetelte","bab1f8b0":"Tweetek","h99e9c95":"return[\"\",\" Retweetelte\"]","d2c7a41c":"Tweeteld válaszodat","e2414185":"return\"Tweet\"+n(e.count,\" idézése\",\"-idézés\")","hb7b0ceb":"return e.retweetCount+\" Retweet\"","bd7c0390":"Tweet-idézések","bea869b4":"Tweetelj","d17df548":"Válasz","e349147c":"Mi történik éppen most?","fa9ce7f4":"Retweet visszavonása","c9d7235e":"Tweet idézése","d6c8514a":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") tweetelte: \"+e.tweet","d6917e0d":"return e.count+\" Tweet megjelenítése\"","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"id":{"f70a36d0":"Tweet semua","d25289b4":"Di-retweet oleh","bab1f8b0":"Tweet","h99e9c95":"return[\"\",\" me-retweet\"]","d2c7a41c":"Tweet balasan Anda","bd7c039f":"Tweet Kutipan","bea869b3":"Tweet","hdf72269":"Balas","e349147b":"Apa yang sedang terjadi?","f3bbbb87":"Batalkan Retweet","c9d7235d":"Kutip Tweet","d6c85149":"Retweet","e2414184":null,"e2414185":null,"hb7b0ceb":null,"hb7b0cea":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d91695cb":null,"d6917e0c":null,"d6917e0d":null},"it":{"f70a36d0":"Twitta tutto","d25289b4":"Ritwittato da","bab1f8b0":"Tweet","h99e9c95":"return[\"\",\" ha ritwittato\"]","d2c7a41c":"Twitta la tua risposta","e2414184":"return\"Tweet di citazione\"","hb7b0cea":"return e.retweetCount+\" Retweet\"","bd7c039f":"Tweet di citazione","bea869b3":"Twitta","hdf72269":"Rispondi","e349147b":"Che c'è di nuovo?","f3bbbb87":"Annulla Retweet","c9d7235d":"Cita Tweet","d6c85149":"Ritwitta","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") ha twittato: \"+e.tweet","d6917e0c":"return\"Mostra \"+e.count+\" Tweet\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ja":{"f70a36d0":"すべてツイート","d25289b4":"リツイートしたユーザー","bab1f8b0":"ツイート","h99e9c95":"return[\"\",\"さんがリツイート\"]","d2c7a41c":"返信をツイート","e2414184":"return\"件の引用ツイート\"","hb7b0cea":"return e.retweetCount+\" 件のリツイート\"","bd7c039f":"引用ツイート","bea869b3":"ツイートする","hdf72269":"返信","e349147b":"いまどうしてる?","f3bbbb87":"リツイートを取り消す","c9d7235d":"引用ツイート","d6c85149":"リツイート","d91695cb":"return e.fullName+\"(@\"+e.screenName+\")さんがツイートしました: \"+e.tweet","d6917e0c":"return e.count+\" 件のツイートを表示\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":"現実はやり直せない,でもUならやり直せる.","e349147b":"現実はやり直せない,でもUならやり直せる.","fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"kn":{"f70a36d0":"ಎಲ್ಲಾ ಟ್ವೀಟ್ ಮಾಡಿ","d25289b4":"ಮರುಟ್ವೀಟಿಸಿದವರು","bab1f8b0":"ಟ್ವೀಟ್ಗಳು","h99e9c95":"return[\"\",\" ಅವರು ಮರುಟ್ವೀಟಿಸಿದ್ದಾರೆ\"]","d2c7a41c":"ನಿಮ್ಮ ಪ್ರತಿಕ್ರಿಯೆಯನ್ನು ಟ್ವೀಟ್ ಮಾಡಿ","e2414185":"return\"\"+n(e.count,\"ಟ್ವೀಟ್ ಕೋಟ್ ಮಾಡಿ\",\"ಕೋಟ್ ಟ್ವೀಟ್ಗಳು\")","hb7b0ceb":"return e.retweetCount+\" ಮರುಟ್ವೀಟ\"+n(e.retweetCount,\"ಿಸಿ\",\"್ಗಳು\")","bd7c0390":"ಕೋಟ್ ಟ್ವೀಟ್ಗಳು","bea869b4":"ಟ್ವೀಟ್","d17df548":"ಪ್ರತಿಕ್ರಿಯಿಸಿ","e349147c":"ಏನಾಗುತ್ತಿದೆ?","fa9ce7f4":"ಮರುಟ್ವೀಟಿಸುವುದನ್ನು ರದ್ದುಮಾಡಿ","c9d7235e":"ಟ್ವೀಟ್ ಕೋಟ್ ಮಾಡಿ","d6c8514a":"ಮರುಟ್ವೀಟಿಸಿ","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return\"ತೋರಿಸಿ \"+e.count+\" ಟ್ವೀಟ್\"+n(e.count,\"\",\"ಗಳು\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"ko":{"f70a36d0":"모두 트윗하기","d25289b4":"리트윗함","bab1f8b0":"트윗","h99e9c95":"return[\"\",\" 님이 리트윗함\"]","d2c7a41c":"내 답글을 트윗합니다.","e2414184":"return\"인용한 트윗\"","hb7b0cea":"return e.retweetCount+\" 리트윗\"","bd7c039f":"트윗 인용하기","bea869b3":"트윗","hdf72269":"답글","e349147b":"무슨 일이 일어나고 있나요?","f3bbbb87":"리트윗 취소","c9d7235d":"트윗 인용하기","d6c85149":"리트윗","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0c":"return\"보기 \"+e.count+\" 트윗\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"mr":{"f70a36d0":"सर्व ट्विट करा","d25289b4":"यांनी पुन्हा ट्विट केले","bab1f8b0":"ट्विट्स","h99e9c95":"return[\"\",\" यांनी पुन्हा ट्विट केले\"]","d2c7a41c":"आपल्या प्रत्युत्तरावर ट्विट करा","e2414184":"return\"\"+r(e.count,\"ट्विट वर भाष्य करा\",\"भाष्य ट्विट्स\")","hb7b0cea":"return e.retweetCount+\" पुन\"+r(e.retweetCount,\"्हा ट्विट करा\",\"र्ट्विट्स\")","bd7c039f":"भाष्य ट्विट्स","bea869b3":"ट्विट","hdf72269":"प्रत्युत्तर","e349147b":"काय घडत आहे?","f3bbbb87":"पुनर्ट्विट पूर्ववत करा","c9d7235d":"ट्विट वर भाष्य करा","d6c85149":"पुन्हा ट्विट","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") यांनी ट्विट केले: \"+e.tweet","d6917e0c":"return e.count+\" ट्विट\"+r(e.count,\"\",\"्स\")+\" दाखवा\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ms":{"f70a36d0":"Tweet semua","d25289b4":"Ditweet semula oleh","bab1f8b0":"Tweet","h99e9c95":"return[\"\",\" telah Tweet semula\"]","d2c7a41c":"Tweet balasan anda","bd7c039f":"Tweet Petikan","bea869b3":"Tweet","hdf72269":"Balas","e349147b":"Apakah yang sedang berlaku?","f3bbbb87":"Buat asal Tweet semula","c9d7235d":"Petik Tweet","d6c85149":"Tweet semula","e2414184":null,"e2414185":null,"hb7b0ceb":null,"hb7b0cea":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d91695cb":null,"d6917e0c":null,"d6917e0d":null},"nb":{"f70a36d0":"Tweet alle","d25289b4":"Retweetet av","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" retweetet\"]","d2c7a41c":"Tweet svaret ditt","e2414185":"return\"sitat-Tweet\"+i(e.count,\"\",\"s\")","hb7b0ceb":"return e.retweetCount+\" Retweet\"+i(e.retweetCount,\"\",\"s\")","bd7c0390":"Sitat-Tweets","bea869b4":"Tweet","d17df548":"Svar","e349147c":"Hva skjer?","fa9ce7f4":"Angre Retweet","c9d7235e":"Sitat-Tweet","d6c8514a":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweetet: \"+e.tweet","d6917e0d":"return\"Vis \"+e.count+\" Tweet\"+i(e.count,\"\",\"s\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"nl":{"f70a36d0":"Alles tweeten","d25289b4":"Geretweet door","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" heeft geretweet\"]","d2c7a41c":"Je antwoord tweeten","e2414185":"return\"\"+r(e.count,\"Citeer Tweet\",\"Geciteerde Tweets\")","hb7b0ceb":"return e.retweetCount+\" Retweet\"+r(e.retweetCount,\"\",\"s\")","bd7c0390":"Geciteerde Tweets","bea869b4":"Tweeten","d17df548":"Beantwoorden","e349147c":"Wat houdt je bezig?","fa9ce7f4":"Retweet ongedaan maken","c9d7235e":"Citeer Tweet","d6c8514a":"Retweeten","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return e.count+\" Tweet\"+r(e.count,\"\",\"s\")+\" weergeven\"","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"pl":{"f70a36d0":"Tweetnij wszystko","d25289b4":"Podane dalej przez","bab1f8b0":"Tweety","h99e9c95":"return[\"\",\" podał/a dalej Tweeta\"]","d2c7a41c":"Wyślij Tweeta z odpowiedzią","e2414184":"return\"Cyt\"+n(e.count,\"aty z\",\"atów z\",\"uj\",\"atów z\")+\" Tweeta\"","hb7b0cea":"return e.retweetCount+\" Tweet\"+n(e.retweetCount,\"y podane\",\"ów podanych\",\" podany\",\"ów podanych\")+\" dalej\"","bd7c039f":"Cytatów z Tweeta","bea869b3":"Tweet","hdf72269":"Odpowiedz","e349147b":"Co się dzieje?","f3bbbb87":"Cofnij podanie dalej","c9d7235d":"Cytuj Tweeta","d6c85149":"Podaj dalej","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Napisał/a: \"+e.tweet","d6917e0c":"return\"Pokaż \"+e.count+\" Tweet\"+n(e.count,\"y\",\"ów\",\"a\",\"ów\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"pt":{"f70a36d0":"Tweetar tudo","d25289b4":"Retweetado por","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" retweetou\"]","d2c7a41c":"Tweete sua resposta","e2414184":"return\"Tweet\"+r(e.count,\"\",\"s\")+\" de comentário\"","hb7b0cea":"return e.retweetCount+\" Retweet\"+r(e.retweetCount,\"\",\"s\")","bd7c039f":"Tweets com comentário","bea869b3":"Tweetar","hdf72269":"Responder","e349147b":"O que está acontecendo?","f3bbbb87":"Desfazer Retweet","c9d7235d":"Citar Tweet","d6c85149":"Retweetar","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") tweetou: \"+e.tweet","d6917e0c":"return\"Mostrar \"+e.count+\" Tweet\"+r(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ro":{"f70a36d0":"Dă Tweeturi cu tot","d25289b4":"Redistribuit de către","bab1f8b0":"Tweeturi","h99e9c95":"return[\"\",\" a redistribuit\"]","d2c7a41c":"Dă un Tweet cu răspunsul","e2414184":"return\"\"+r(e.count,\"Tweeturi cu citat\",\"Tweet cu citat\",\"de Tweeturi cu citate\")","hb7b0cea":"return e.retweetCount+\" \"+r(e.retweetCount,\"Retweeturi\",\"Retweet\",\"de Retweeturi\")","bd7c039f":"Tweeturi cu citat","bea869b3":"Tweet","hdf72269":"Răspunde","e349147b":"Ce se întâmplă?","f3bbbb87":"Anulează Retweetul","c9d7235d":"Citează Tweetul","d6c85149":"Redistribuie","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") a dat Tweetul: \"+e.tweet","d6917e0c":"return\"Afișează \"+e.count+\" \"+r(e.count,\"Tweeturi\",\"Dă Tweet\",\"Tweeturi\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ru":{"f70a36d0":"Твитнуть все","d25289b4":"Ретвитнул(а)","bab1f8b0":"Твиты","h99e9c95":"return[\"\",\" ретвитнул(а)\"]","d2c7a41c":"Твитнуть в ответ","e2414184":"return\"\"+n(e.count,\"твита с цитатами\",\"твитов с цитатами\",\"Цитировать твит\",\"Твиты с цитатами\")","hb7b0cea":"return e.retweetCount+\" ретвит\"+n(e.retweetCount,\"а\",\"ов\",\"\",\"а\")","bd7c039f":"Твиты с цитатами","bea869b3":"Твитнуть","hdf72269":"Ответить","e349147b":"Что происходит?","f3bbbb87":"Отменить ретвит","c9d7235d":"Цитировать","d6c85149":"Ретвитнуть","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") твитнул(а): \"+e.tweet","d6917e0c":"return\"Показать \"+e.count+\" твит\"+n(e.count,\"а\",\"ов\",\"\",\"а\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"sr":{"f70a36d0":"Твитуј све","d25289b4":"Ретвитовано од стране","bab1f8b0":"Твитови","h99e9c95":"return[\"\",\" ретвитује\"]","d2c7a41c":"Твитуј свој одговор","e2414185":"return\"твит\"+n(e.count,\"а\",\"\",\"(ов)а\")+\" са цитатом\"","hb7b0ceb":"return e.retweetCount+\" ретвит\"+n(e.retweetCount,\"а\",\"\",\"ова\")","bd7c0390":"твит(ов)а са цитатом","bea869b4":"Твитуј","d17df548":"Одговори","e349147c":"Шта се дешава?","fa9ce7f4":"Опозови ретвит","c9d7235e":"твит са цитатом","d6c8514a":"Ретвитуј","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return\"Прикажи \"+e.count+\" твит\"+n(e.count,\"а\",\"\",\"ова\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"sk":{"f70a36d0":"Tweetnuť všetko","d25289b4":"Retweetnuté používateľom","bab1f8b0":"Tweety","h99e9c95":"return[\"Používateľ \",\" retweetol\"]","d2c7a41c":"Tweetnuť odpoveď","e2414184":"return\"Tweet\"+n(e.count,\"y\",\"u\",\"\",\"y\")+\" s citátom\"","hb7b0cea":"return e.retweetCount+\" retweet\"+n(e.retweetCount,\"y\",\"u\",\"\",\"ov\")","bd7c039f":"Tweety s citátom","bea869b3":"Tweetnuť","hdf72269":"Odpovedať","e349147b":"Čo sa deje?","f3bbbb87":"Zrušiť retweet","c9d7235d":"Tweet s citátom","d6c85149":"Retweetnuť","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0c":"return\"Zobraziť \"+e.count+\" Tweet\"+n(e.count,\"y\",\"u\",\"\",\"ov\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"sv":{"f70a36d0":"Tweeta allt","d25289b4":"Retweetad av","bab1f8b0":"Tweets","h99e9c95":"return[\"\",\" Retweetade\"]","d2c7a41c":"Tweeta ditt svar","e2414184":"return\"citat-tweet\"+r(e.count,\"\",\"s\")","hb7b0cea":"return e.retweetCount+\" Retweet\"+r(e.retweetCount,\"\",\"s\")","bd7c039f":"Citat-tweets","bea869b3":"Tweeta","hdf72269":"Svara","e349147b":"Vad händer?","f3bbbb87":"Ångra retweeten","c9d7235d":"Citera Tweet","d6c85149":"Retweeta","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweetade: \"+e.tweet","d6917e0c":"return\"Visa \"+e.count+\" Tweet\"+r(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"ta":{"f70a36d0":"அனைத்தையும் ட்விட் செய்","d25289b4":"இவரால் மறுட்விட் செய்யப்பட்டது","bab1f8b0":"கீச்சுகள்","h99e9c95":"return[\"\",\" மறுட்வீட் செய்துள்ளார்\"]","d2c7a41c":"உங்கள் பதிலை ட்விட் செய்யவும்","e2414185":"return\"\"+n(e.count,\"ட்விட்டை மேற்கோள் காட்டு\",\"மேற்கோள் கீச்சுகள்\")","hb7b0ceb":"return e.retweetCount+\" மறுகீச்சு\"+n(e.retweetCount,\"\",\"கள்\")","bd7c0390":"மேற்கோள் கீச்சுகள்","bea869b4":"ட்விட் செய்","d17df548":"பதிலளி","e349147c":"என்ன நிகழ்கிறது?","fa9ce7f4":"மறுகீச்சை செயல்தவிர்","c9d7235e":"ட்விட்டை மேற்கோள் காட்டு","d6c8514a":"மறுட்விட் செய்","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return e.count+\" கீச்சு\"+n(e.count,\"\",\"கள்\")+\"-ஐக் காண்பி\"","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"th":{"f70a36d0":"ทวีตทั้งหมด","d25289b4":"ถูกรีทวีตโดย","bab1f8b0":"ทวีต","h99e9c95":"return[\"\",\" รีทวีต\"]","d2c7a41c":"ทวีตการตอบกลับของคุณ","e2414185":"return\"ทวีตและคำพูด\"","hb7b0ceb":"return e.retweetCount+\" รีทวีต\"","bd7c0390":"ทวีตและคำพูด","bea869b4":"ทวีต","d17df548":"ตอบกลับ","e349147c":"มีอะไรเกิดขึ้นบ้าง","fa9ce7f4":"ยกเลิกการรีทวีต","c9d7235e":"อ้างอิงทวีต","d6c8514a":"รีทวีต","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return\"แสดง \"+e.count+\" ทวีต\"","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"tr":{"f70a36d0":"Hepsini Tweetle","d25289b4":"Retweetleyen(ler):","bab1f8b0":"Tweetler","h99e9c95":"return[\"\",\" Retweetledi\"]","d2c7a41c":"Yanıtını Tweetle","e2414184":"return\"Alıntı Tweet\"+r(e.count,\"\",\"ler\")","hb7b0cea":"return e.retweetCount+\" Retweet\"","bd7c039f":"Alıntı Tweetler","bea869b3":"Tweetle","hdf72269":"Yanıtla","e349147b":"Neler oluyor?","f3bbbb87":"Retweeti Geri Al","c9d7235d":"Tweeti Alıntıla","d6c85149":"Retweet","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweetledi: \"+e.tweet","d6917e0c":"return\"Göster \"+e.count+\" Tweet\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"uk":{"f70a36d0":"Твітнути все","d25289b4":"Ретвіти","bab1f8b0":"Твіти","h99e9c95":"return[\"\",\" ретвітнув(ла)\"]","d2c7a41c":"Твітніть відповідь","e2414185":"return\"цитован\"+n(e.count,\"і твіти\",\"их твітів\",\"ий твіт\",\"ого твіта\")","hb7b0ceb":"return e.retweetCount+\" ретвіт\"+n(e.retweetCount,\"и\",\"ів\",\"\",\"а\")","bd7c0390":"Цитовані твіти","bea869b4":"Твіт","d17df548":"Відповісти","e349147c":"Що відбувається?","fa9ce7f4":"Скасувати ретвіт","c9d7235e":"Цитувати твіт","d6c8514a":"Ретвітнути","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") Tweeted:\\n\"+e.tweet","d6917e0d":"return\"Показати \"+e.count+\" твіт\"+n(e.count,\"и\",\"ів\",\"\",\"а\")","e2414184":null,"hb7b0cea":null,"bd7c039f":null,"bea869b3":null,"hdf72269":null,"e349147b":null,"f3bbbb87":null,"c9d7235d":null,"d6c85149":null,"d6917e0c":null},"ur":{"f70a36d0":"سب کو ٹویٹ کریں","d25289b4":"ریٹویٹ منجانب","bab1f8b0":"ٹویٹس","h99e9c95":"return[\"\",\" نے ریٹویٹ کیا\"]","d2c7a41c":"اپنا جواب ٹویٹ کریں","e2414184":"return\"Quote Tweet\"+o(e.count,\"\",\"s\")","hb7b0cea":"return e.retweetCount+\" ریٹویٹ\"","bd7c039f":"ٹویٹ کو نقل کرو","bea869b3":"ٹویٹ کریں","hdf72269":"جواب دیں","e349147b":"کیا ہو رہا ہے؟","f3bbbb87":"ریٹویٹ کالعدم کریں","c9d7235d":"ٹویٹ اقتباس کریں","d6c85149":"ریٹویٹ","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") نے ٹویٹ کی: \"+e.tweet","d6917e0c":"return\"Show \"+e.count+\" Tweet\"+o(e.count,\"\",\"s\")","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"vi":{"f70a36d0":"Đăng Tweet tất cả","d25289b4":"Được Tweet lại bởi","bab1f8b0":"Tweet","h99e9c95":"return[\"\",\" đã Tweet lại\"]","d2c7a41c":"Tweet trả lời của bạn","bd7c039f":"Tweet trích dẫn","hdf72269":"Trả lời","e349147b":"Chuyện gì đang xảy ra?","f3bbbb87":"Hoàn tác Tweet lại","c9d7235d":"Trích dẫn Tweet","d6c85149":"Tweet lại","e2414184":null,"e2414185":null,"hb7b0ceb":null,"hb7b0cea":null,"bd7c0390":null,"bea869b4":null,"bea869b3":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d91695cb":null,"d6917e0c":null,"d6917e0d":null},"zh-Hant":{"f70a36d0":"推全部內容","d25289b4":"已被轉推","bab1f8b0":"推文","h99e9c95":"return[\"\",\" 已轉推\"]","d2c7a41c":"推你的回覆","e2414184":"return\"引用的推文\"","hb7b0cea":"return e.retweetCount+\" 則轉推\"","bd7c039f":"引用的推文","bea869b3":"推文","hdf72269":"回覆","e349147b":"現實無法重來,但是你可以在U重來","e349147c":"現實無法重來,但是你可以在U重來","f3bbbb87":"取消轉推","c9d7235d":"引用推文","d6c85149":"轉推","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") 已推文:\"+e.tweet","d6917e0c":"return\"顯示 \"+e.count+\" 則推文\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null},"zh":{"f70a36d0":"全部发推","d25289b4":"转推者","bab1f8b0":"推文","h99e9c95":"return[\"\",\" 转推了\"]","d2c7a41c":"发布你的回复","e2414184":"return\"引用推文\"","hb7b0cea":"return e.retweetCount+\" 转推\"","bd7c039f":"引用推文","bea869b3":"推文","hdf72269":"回复","e349147b":"现实无法重来,但是你可以在U重来","e349147c":"现实无法重来,但是你可以在U重来","f3bbbb87":"撤销转推","c9d7235d":"引用推文","d6c85149":"转推","d91695cb":"return e.fullName+\" (@\"+e.screenName+\") 发推说:\"+e.tweet","d6917e0c":"return\"显示 \"+e.count+\" 推文\"","e2414185":null,"hb7b0ceb":null,"bd7c0390":null,"bea869b4":null,"d17df548":null,"e349147c":null,"fa9ce7f4":null,"c9d7235e":null,"d6c8514a":null,"d6917e0d":null}};
/**
* クッキーから設定言語を取得
* 国際化データに含まれない言語の場合の初期値はen
*/
function getLang() {
const cookie = document.cookie;
const cookieLang = cookie
.split(";")
.map((s) => s.split("="))
.filter(([key, value]) => {
return key === " lang";
})[0][1];
if (Object.keys(i18n).includes(cookieLang)) {
return cookieLang;
} else if (cookieLang === "zh-cn") {
return "zh";
} else if (cookieLang === "zh-tw") {
return "zh-Hant";
} else if (cookieLang === "en-gb") {
return "en-GB";
} else {
return "en";
}
}
/**
* サイドメニューのツイートするボタン
*/
function postToTweetSideNavNewTweetButton(langData) {
const tweetButton = document.querySelector(
'a[data-testid="SideNav_NewTweet_Button"] > div > span > div > div > span > span'
);
const toTweet =
langData.bea869b3 !== null ? langData.bea869b3 : langData.bea869b4;
if (tweetButton !== null && tweetButton.textContent !== toTweet) {
tweetButton.textContent = toTweet;
}
}
/**
* 小さいツイートするボタン
*/
function postToTweetButtonInline(langData) {
const tweetButton = document.querySelector(
'button[data-testid="tweetButtonInline"] > div > span > span'
);
const toTweet =
langData.bea869b3 !== null ? langData.bea869b3 : langData.bea869b4;
const reply =
langData.hdf72269 !== null ? langData.hdf72269 : langData.d17df548;
if (tweetButton !== null) {
if (location.pathname === "/home") {
if (tweetButton.textContent !== toTweet) {
tweetButton.textContent = toTweet;
}
} else {
if (tweetButton.textContent !== reply) {
tweetButton.textContent = reply;
}
}
}
}
/**
* ツイートボタン
*/
function postToTweetButton(langData) {
const tweetButton = document.querySelector(
'button[data-testid="tweetButton"] > div > span > span'
);
const tweetAll = langData.f70a36d0;
const toTweet =
langData.bea869b3 !== null ? langData.bea869b3 : langData.bea869b4;
const reply =
langData.hdf72269 !== null ? langData.hdf72269 : langData.d17df548;
const pathSplited = location.pathname.split("/");
if (pathSplited[2] === "status" && pathSplited[4] === "photo") {
/**
* photoページのときはtweetButtonが返信ボタンになるよ
*/
if (tweetButton !== null && tweetButton.textContent !== reply) {
tweetButton.textContent = reply;
}
} else {
const isTweetAll =
document.querySelector('label[data-testid="tweetTextarea_1_label"]') !==
null;
if (isTweetAll) {
if (tweetButton !== null && tweetButton.textContent !== tweetAll) {
tweetButton.textContent = tweetAll;
}
} else {
if (tweetButton !== null && tweetButton.textContent !== toTweet) {
tweetButton.textContent = toTweet;
}
}
}
}
/**
* 返信をツイート
*/
function postToTweetReplyDraftEditorPlaceholder(langData) {
const whatsHappen =
langData.e349147c !== null ? langData.e349147c : langData.e349147b;
const placeholder = document.querySelector(
`.public-DraftEditorPlaceholder-inner`
);
// mobile
const placeholderTextArea = document.querySelector(
`textarea[data-testid="tweetTextarea_0"]`
);
if (placeholder !== null) {
if (
location.pathname !== "/home" &&
location.pathname !== "/compose/tweet"
) {
if (placeholder.textContent !== langData.d2c7a41c) {
placeholder.textContent = langData.d2c7a41c;
}
} else {
if (placeholder.textContent !== whatsHappen) {
placeholder.textContent = whatsHappen;
}
}
}
if (placeholderTextArea !== null) {
if (
location.pathname !== "/home" &&
location.pathname !== "/compose/tweet"
) {
if (
placeholderTextArea.getAttribute("placeholder") !== langData.d2c7a41c
) {
placeholderTextArea.setAttribute("placeholder", langData.d2c7a41c);
}
}
}
}
/**
* リツイートボタン、引用ツイートボタン
*/
function postToTweetRetweetBtn(langData) {
const retweetBtns = document.querySelectorAll(
'div[data-testid="retweetConfirm"] > div:nth-child(2) > div > span:not(.x-to-U-retweet)'
);
const quoteBtns = document.querySelectorAll(
'a[href="/compose/tweet"] > div:nth-child(2) > div > span:not(.x-to-U-retweet)'
);
const unRetweetBtns = document.querySelectorAll(
'div[data-testid="unretweetConfirm"] > div:nth-child(2) > div > span:not(.x-to-U-retweet)'
);
const toRetweet =
langData.d6c8514a !== null ? langData.d6c8514a : langData.d6c85149;
const toQuote =
langData.c9d7235d !== null ? langData.c9d7235d : langData.c9d7235e;
const undoRetweet =
langData.f3bbbb87 !== null ? langData.f3bbbb87 : langData.fa9ce7f4;
retweetBtns?.forEach((retweetBtn) => {
retweetBtn.classList.add("x-to-U-retweet");
retweetBtn.textContent = toRetweet;
});
quoteBtns?.forEach((quoteBtn) => {
quoteBtn.classList.add("x-to-U-retweet");
quoteBtn.textContent = toQuote;
});
unRetweetBtns?.forEach((unRetweetBtn) => {
unRetweetBtn.classList.add("x-to-U-retweet");
unRetweetBtn.textContent = undoRetweet;
});
}
/**
* リツイートカウンター
*/
function postToTweetRetweetCounter(langData) {
const counterLinks = document.querySelectorAll(
"article > div > div > div:nth-child(3) > div:nth-child(5) > div > a"
);
const splitRetweets = (
langData.hb7b0cea !== null ? langData.hb7b0cea : langData.hb7b0ceb
).split('"');
const retweet =
splitRetweets[1].trim() +
(splitRetweets[5] !== undefined ? splitRetweets[5] : "");
counterLinks.forEach((counterLink) => {
const hrefSplit = counterLink.getAttribute("href").split("/");
if (hrefSplit[4] === "retweets" && hrefSplit[5] === undefined) {
const counter = counterLink.querySelector("a > span > span");
if (counter !== null) {
if (counter.textContent !== retweet) {
counter.textContent = retweet;
}
}
}
});
}
/**
* 引用ツイートカウンター
*/
function postToTweetQuoteCounter(langData) {
const counterLinks = document.querySelectorAll(
"article > div > div > div:nth-child(3) > div:nth-child(5) > div > a"
);
const splitRetweets = (
langData.e2414184 !== null ? langData.e2414184 : langData.e2414185
).split('"');
const quote =
splitRetweets[1].trim() +
(splitRetweets[5] !== undefined ? splitRetweets[5] : "");
counterLinks.forEach((counterLink) => {
const hrefSplit = counterLink.getAttribute("href").split("/");
if (hrefSplit[4] === "retweets" && hrefSplit[5] === "with_comments") {
const counter = counterLink.querySelector("a > span > span");
if (counter !== null) {
if (counter.textContent !== quote) {
counter.textContent = quote;
}
}
}
});
}
/**
* 上の「件のツイートを表示」
*/
function postToTweetTopCountTweets(langData) {
const showEPostsElem = document.querySelector(
`div[data-testid="cellInnerDiv"] > div > button[role="button"] > div > div > span`
);
const splitShowEPosts = (
langData.d6917e0c !== null ? langData.d6917e0c : langData.d6917e0d
).split('"');
if (showEPostsElem !== null) {
const parent =
showEPostsElem.parentElement.parentElement.parentElement.parentElement
.parentElement;
const key = Object.keys(parent).filter((key) => {
return key.match(/^__reactProps\$/);
})[0];
const count =
parent[key].children._owner.memoizedProps.item.data.content.count;
const showEPosts =
count +
" " +
splitShowEPosts[1].trim() +
(splitShowEPosts[5] !== undefined ? splitShowEPosts[5] : "");
if (showEPostsElem.textContent !== showEPosts) {
showEPostsElem.textContent = showEPosts;
}
}
}
/**
* Header
*/
function postToTweetHeader(langData) {
const header = document.querySelector(
`h2[dir="ltr"]:not(#modal-header) > span`
);
const toTweet =
langData.bea869b3 !== null ? langData.bea869b3 : langData.bea869b4;
const quoteTweet =
langData.c9d7235d !== null ? langData.c9d7235d : langData.bd7c0390;
const splitPath = location.pathname.split("/");
if (header !== null) {
if (splitPath[2] === "status" && splitPath[4] !== "photo") {
if (splitPath[4] === "retweets" && splitPath[5] === "with_comments") {
if (header.textContent !== quoteTweet) {
header.textContent = quoteTweet;
}
} else {
if (header.textContent !== toTweet) {
header.textContent = toTweet;
}
}
}
}
}
/**
* RetweetedBy popup
*/
function postToTweetRetweetedByPopup(langData) {
const header = document.querySelector(`h2[dir="ltr"]#modal-header > span`);
const splitPath = location.pathname.split("/");
const retweetedBy = langData.d25289b4;
if (
header !== null &&
splitPath[4] === "retweets" &&
header.textContent !== retweetedBy
) {
header.textContent = retweetedBy;
}
}
/**
* リポストしました
*/
function postToTweetRetweeted(langData) {
const retweeted = langData.h99e9c95.split('"')[3];
const retweetedSpans = document.querySelectorAll(
`article span[data-testid="socialContext"]:not(.x-to-U-retweeted)`
);
retweetedSpans?.forEach((retweetedSpan) => {
retweetedSpan.classList.add("x-to-U-retweeted");
if (retweetedSpan.childNodes[2] !== undefined) {
retweetedSpan.childNodes[2].textContent = retweeted;
}
});
}
/**
* 上から出てくるやつ
* "さんがツイートしました"
*/
function postToTweetTweetedPill(langData) {
const tweeted = langData.d91695cb
.replaceAll(")", ")")
.split(")")[1]
.split(":")[0];
const pill = document.querySelector(
`div[data-testid="pillLabel"] > span > span > span`
);
if (pill !== null && pill.textContent !== tweeted) {
pill.textContent = tweeted;
}
}
/**
* プロフィールのタブのツイート
*/
function postToTweetProfileTweets(langData) {
const tweets = langData.bab1f8b0;
const profileTabPost = document.querySelector(
'div[role="tablist"] > div[role="presentation"]:nth-child(1) > a > div > div > span'
);
const isProfilePage = document.querySelector('div[data-testid="UserProfileHeader_Items"]') !== null
if (profileTabPost !== null && profileTabPost.textContent !== tweets && isProfilePage) {
setTimeout(() => {
if (
document.querySelector(
`script[data-testid="UserProfileSchema-test"]`
) !== null
) {
profileTabPost.textContent = tweets;
}
});
}
}
/**
* Post を Tweet に変更
*/
function postToTweet() {
const langData = i18n[getLang()];
const ob = new MutationObserver(() => {
postToTweetSideNavNewTweetButton(langData);
postToTweetButtonInline(langData);
postToTweetButton(langData);
postToTweetReplyDraftEditorPlaceholder(langData);
postToTweetRetweetBtn(langData);
postToTweetRetweetCounter(langData);
postToTweetHeader(langData);
postToTweetRetweeted(langData);
postToTweetRetweetedByPopup(langData);
postToTweetTweetedPill(langData);
postToTweetProfileTweets(langData);
postToTweetQuoteCounter(langData);
postToTweetTopCountTweets(langData);
});
ob.observe(document.body, {
subtree: true,
childList: true,
});
}
/**
* 国際化ファイルのテスト
*/
function i18nTest() {
const tests = [
{ name: "Tweet", keys: ["bea869b3", "bea869b4"] },
{ name: "Reply", keys: ["hdf72269", "d17df548"] },
{ name: "You will be “U”. “U” will be you. “U” will be everything.", keys: ["e349147c", "e349147b"] },
{ name: "Retweet", keys: ["d6c8514a", "d6c85149"] },
{ name: "Quote Tweet", keys: ["c9d7235d", "c9d7235e"] },
{ name: "Quote Tweets", keys: ["c9d7235d", "bd7c0390"] },
{ name: "Undo Retweet", keys: ["f3bbbb87", "fa9ce7f4"] },
{ name: "Retweets (counter)", keys: ["hb7b0cea", "hb7b0ceb"] },
{ name: "{user} Retweeted", keys: ["h99e9c95"] },
{ name: "Retweeted by", keys: ["d25289b4"] },
{ name: "{user} Tweeted", keys: ["d91695cb"] },
{ name: "Tweets", keys: ["bab1f8b0"] },
{ name: "Tweet all", keys: ["f70a36d0"] },
{ name: "Show e.count tweets", keys: ["d6917e0c", "d6917e0d"] },
];
let errorExist = false;
Object.keys(i18n).forEach((langName) => {
tests.forEach(({ name, keys }) => {
let isPass = false;
keys.forEach((key) => {
if (i18n[langName][key] !== null) {
isPass = true;
}
});
if (!isPass) {
errorExist = true;
console.log(`❌${langName}: "${name}" Not Passed.`);
}
});
});
if (errorExist) {
console.log(
"%c[X to U] Did not pass translation test%c",
"color:white; background-color:purple; font-size: 20px",
"",
"\nIf you can provide an appropriate translation, please contact the issue on github\nhttps://github.com/yakisova41/xToU/issues"
);
}
}
/**
* タイトルをUに変更
*/
function titleChange(head) {
const i = setInterval(() => {
const titleEl = head.querySelector("title");
if (titleEl !== null) {
clearInterval(i);
const titleOb = new MutationObserver(() => {
if (titleEl.innerHTML === "X") {
titleEl.innerHTML = "U";
} else {
const split = titleEl.innerHTML.split("/");
if (split[1] === " X") {
split[1] = " U";
titleEl.innerHTML = split.join("/");
}
}
});
titleOb.observe(titleEl, {
childList: true,
});
}
}, 100);
}
/**
* cssを追加
*/
function styleInject(head) {
const style = document.createElement("style");
const verifiedSelector = `a[href="/i/verified-choose"] > div > div > svg > g > path`;
const verifiedSelectorMobile = `a[href="/i/verified-choose"] > div > svg > g > path`;
const xLogoSelector = `path[d="${paths.xLogoPath}"]:not(${verifiedSelector}):not(${verifiedSelectorMobile})`;
const xLogoDarkmodeSelector = `div[style="text-overflow: unset; color: rgb(239, 243, 244);"] > svg > g > path:not(${verifiedSelector}):not(${verifiedSelectorMobile})`;
const homeSelector = 'a[data-testid="AppTabBar_Home_Link"] > div > div > svg > g > path';
style.innerHTML = `
.x-to-U {
fill: inherit;
color: ${colors.UColor};
}
${xLogoSelector}, path[d="${paths.loadingXLogoPath}"] {
d:path("${paths.birdPath}");
fill: inherit;
color: ${colors.UColor};
}
${xLogoDarkmodeSelector} {
color: rgb(239, 243, 244);
}
div[aria-label="Loading…"] > svg > g > path {
d:path("${paths.birdPath}");
fill: inherit;
color: ${colors.loadingBirdColor};
}
${verifiedSelector}, ${verifiedSelectorMobile} {
d:path("${paths.verifiedPath}");
}
${homeSelector}:not(path[d="${paths.homePath}"]) {
d:path("${paths.oldHomeActivePath}");
}
${homeSelector}:not(path[d="${paths.homeActivePath}"]) {
d:path("${paths.oldHomePath}");
}
`;
head.appendChild(style);
}
/**
* headが見つかったときの処理
*/
function headFound(head) {
// favicon change
const faviconHref =
"data:image/x-icon;base64,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";
const ob = new MutationObserver((e) => {
const shortcutIcon = head.querySelector('[rel="shortcut icon"]');
if (shortcutIcon !== null) {
if (shortcutIcon.getAttribute("href") !== faviconHref) {
shortcutIcon.href = faviconHref;
}
}
});
// wait rendering
setTimeout(() => {
ob.observe(head, {
childList: true,
subtree: true,
});
postToTweet();
}, 100);
styleInject(head);
titleChange(head);
// i18nTest();
}
/**
* ゴミSafariはcssのpath d変更に対応していないため
* 一つ一つのDOMを書き換えることで対応
*/
function trashSafari() {
const ob = new MutationObserver(() => {
const pathElems = document.querySelectorAll(
`path[d="${paths.xLogoPath}"]:not(.x-to-U):not(a[href="/i/verified-choose"] > div > div > svg > g > path, a[href="/i/verified-choose"] > div > svg > g > path), path[d="${paths.loadingXLogoPath}"]:not(.x-to-U)`
);
if (pathElems.length !== 0) {
pathElems.forEach((path) => {
path.setAttribute("d", paths.birdPath);
path.classList.add("x-to-U");
});
}
const verifiedElems = document.querySelectorAll(
`a[href="/i/verified-choose"] > div > div > svg > g > path:not(.x-to-U-noncolor), a[href="/i/verified-choose"] > div > svg > g > path:not(.x-to-U-noncolor)`
);
if (verifiedElems.length !== 0) {
verifiedElems.forEach((path) => {
path.setAttribute("d", paths.verifiedPath);
path.classList.add("x-to-U-noncolor");
});
}
const homeicon = document.querySelector(`a[data-testid="AppTabBar_Home_Link"] > div > div > svg > g > path:not(.x-to-U-birdhome)`);
if(homeicon !== null) {
const d = homeicon.getAttribute("d");
if(d === paths.homeActivePath) {
homeicon.setAttribute("d", paths.oldHomeActivePath)
}
if(d === paths.homePath) {
homeicon.setAttribute("d", paths.oldHomePath)
}
homeicon.classList.add("x-to-U-birdhome");
}
});
ob.observe(document.body, {
subtree: true,
childList: true,
});
document
.querySelector('div[aria-label="Loading…"] > svg > g > path')
.setAttribute("d", paths.birdPath);
}
/**
* PWAのmanifestをUに書き換える
* !! 拡張機能でのみ動作
*/
function replaceManifest(head) {
document.querySelector('link[rel="manifest"]').remove();
const manifestEl = document.createElement("link");
manifestEl.setAttribute("rel", "manifest");
manifestEl.setAttribute("crossorigin", "use-credentials");
manifestEl.setAttribute(
"href"
);
head.prepend(manifestEl);
}
/**
* スクリプトを実行
*/
function main() {
if (typeof GM_info !== "undefined") {
// userscript
let head;
if (GM_info.scriptHandler === "Userscripts") {
// ios
head = document.head;
trashSafari();
} else {
head = unsafeWindow.document.head;
}
if (head !== null && head !== undefined) {
headFound(head);
} else {
const i = setInterval(() => {
const head = document.head;
if (head !== undefined && head !== null) {
clearInterval(i);
headFound(head);
}
});
}
} else {
// extension
const i = setInterval(() => {
const head = document.head;
if (head !== null) {
clearInterval(i);
headFound(head);
setTimeout(() => {
replaceManifest(head);
}, 100)
}
});
}
}
main();