twitter conversation opener

expands conversations?

目前為 2015-07-12 提交的版本,檢視 最新版本

// ==UserScript==
// @name         twitter conversation opener
// @version      0.1
// @description  expands conversations?
// @author       vG Rejected
// @match        *://twitter.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// @namespace https://greasyfork.org/users/9702
// ==/UserScript==

document.addEventListener("DOMContentLoaded", viewConversations, false );

if( document.readyState == "complete" ) {
    conversationInterval = setInterval(viewConversations(), 30000);//30 second refresh rate
}

function viewConversations() {
	$('[id^="stream-item-activity-"]').find("div > div.content > div.stream-item-footer > a > b > span.expand-stream-item.js-view-details").each(function() {
			if(this.innerHTML == "View conversation"){
				this.click();
			}
		});
}