hintable new tweets for vimperator

this script makes twitter new tweets bar hintable for vimperator/vimium, just hit `f` and you'll see

  1. // ==UserScript==
  2. // @name hintable new tweets for vimperator
  3. // @namespace https://twitter.com/
  4. // @description this script makes twitter new tweets bar hintable for vimperator/vimium, just hit `f` and you'll see
  5. // @include https://twitter.com/*
  6. // @include https://www.twitter.com/*
  7. // @grant none
  8. // @version 0.0.1.20141107025146
  9. // ==/UserScript==
  10.  
  11. window.addEventListener('DOMContentLoaded', function() {
  12. var parent = document.getElementsByClassName('stream-container')[0];
  13. var action_link = document.createElement('a')
  14. action_link.setAttribute('href', '#');
  15. action_link.setAttribute('style', 'width: 0px; height: 0px; display: block;');
  16. action_link.addEventListener('click', function() {
  17. document.getElementsByClassName('new-tweets-bar')[0].click();
  18. return false;
  19. });
  20. parent.insertBefore(action_link, parent.firstChild);
  21. });
  22.  

QingJ © 2025

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