// ==UserScript==
// @name 在推特个人页面添加高级搜索按钮
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://twitter.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var acc = document.getElementsByClassName('u-linkComplex-target');
if(!acc){return;}
var account = acc[0].innerHTML;
if(!account){return;};
var ul = document.getElementsByClassName('ProfileHeading-toggle');
if(!ul){return;}
ul = ul[0];
var li = document.createElement('li');
li.className = 'ProfileHeading-toggleLink';
var a = document.createElement('a');
a.href = 'https://twitter.com/search?l=&q=from%3A'+account+'&src=typd';
a.target = '_blank';
a.innerHTML = '查看所有原创推文';
a.className = 'ProfileHeading-toggleLink';
li.appendChild(a)
li.style.cssFloat = 'right';
li.style.paddingRight = '12px';
a.style.fontSize = '18px';
a.style.fontWeight='bold';
a.style.lineHeight = '46px';
ul.appendChild(li);
// Your code here...
})();