block promoted v0.4
当前为
// ==UserScript==
// @author Giel
// @name block promoted
// @version 0.4
// @description block promoted v0.4
// @match https://*.twitter.com/*
// @match http://*.twitter.com/*
// @copyright giel
// @namespace https://twitter.com
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
$('.js-action-profile-promoted').each(function(i, val){
$(this).click()
//document.getElementsByTagName('.promoted-tweet')[0]
$('.promoted-tweet')[0]
$('.profiletweet-actionbutton').click()
$('.block-link').click()
$($('.block-button')[0]).click()
});