ここに私が使用している次のコードがあります
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 3000,
width: 'auto',
height: 281,
theme: {
shell: {
background: '#fff',
color: '#3a589c'
},
tweets: {
background: '#ffffff',
color: '#000000',
links: '#3a589c'
}
},
features: {
scrollbar: false,
loop: true,
live: true,
hashtags: true,
timestamp: true,
avatars: false,
behavior: 'default'
}
}).render().setUser(klatianstayahed).start();
</script>
http://widgets.twimg.com/j/2/widget.jsでコードエラーが発生する場所は次のとおりです。
TWTR=window.TWTR||{};(function(){var A=0;var D;var B=["init","setDimensions","setRpp","setFeatures","setTweetInterval","setBase","setList","setProfileImage","setTitle","setCaption","setFooterText","setTheme","byClass","render","removeEvents","clear","start","stop","pause","resume","destroy"];function C(H){var E=0;var G;var
F=["Twitter API v1.0 は廃止されたため、このウィジェットは機能を停止しました。","新しい、アップグレードされたウィジェットに置き換えることができます。","代替の Twitter ツールの詳細については、https:// dev.twitter.com/docs/twitter-for-websites "];
if(!window.console){return }for(;G=F[E];E++){if(console.warn){console.warn("TWITTER WIDGET: "+G);continue}console.log(G)}}TWTR.Widget=function(E){switch(E.type){case"search":C("search?query="+escape(E.search));break;case"profile":this._profile=true;break;case"list":case"lists":C("list");break;default:return }};TWTR.Widget.ify={autoLink:function(){return{match:function(){return false}}}};TWTR.Widget.randomNumber=function(){};TWTR.Widget.prototype.isRunning=function(){return false};TWTR.Widget.prototype.setProfile=function(E){C("user?screen_name="+escape(E));return this};TWTR.Widget.prototype.setUser=function(E){if(this._profile){return this.setProfile(E)}C("favorites?screen_name="+escape(E));return this};TWTR.Widget.prototype.setSearch=function(E){C("search?query="+escape(E));return this};for(;D=B[A];A++){TWTR.Widget.prototype[D]=function(){return this}}})();
そして、URLからの指示に従いました
https://twitter.com/settings/widgets および https://dev.twitter.com/docs/embedded-timelines
しかし、私は古い外観を取得しておらず、自動スクロールのような多くのオプションがオフになっています。そのウィジェットのヘッダーからツイートを移動して、エアコンの写真をTwitterに置くことはできません(上に投稿した古いスクリプトにありました) . そして、最も恥ずかしいのは、私が最も嫌いでそのオプションを削除したい@klatianstayahedへのツイートです。私が望んでいない新しいスクリプトではなく、その古いスクリプトが機能するように、それを変更して古いスクリプトを変更するのを手伝ってくれる人はいますか。私の要件は、http://widgets.twimg.com/j/2/widget.jsの更新されたスクリプトを入手することです。