block promoted

block promoted v0.4

目前為 2016-01-11 提交的版本,檢視 最新版本

// ==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()
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址