/* * @title YSSS↺ * @description auto-reload Yahoo social stream search * @include http://realtime.search.yahoo.co.jp/search?* * @license MIT License http://opensource.org/licenses/MIT * @javascript_url */ // Yahoo realtime search // http://let.hatelabo.jp/noromanba/let/gYC-yoDbprDzbQ // e.g. // http://realtime.search.yahoo.co.jp/search?p=%23bot // toggleScroll() manually-on/off only, can not auto-refresh when auto-stop // window.YAHOO.JP.srch.rt.toggleScroll() (() => { const state = document.body.querySelector('#msg_TSk_1[style]'); if (!state) return; const reload = () => { if (state.style.display !== 'none') { // ~= location.reload(); location.assign(state.querySelector('a[href*="//"]').href); } }; reload(); new MutationObserver(() => { reload(); }).observe(state, { attributes: true, attributeFilter: ['style'] }); })(); // # DBG // // ## scroll on (default) //
// 停止自動更新:5秒
// // // // ## manually-stop //// 再生自動更新:停止中
// // // // ## auto-stop // // //// 再読み込み自動更新を停止しました。 //