// ==UserScript==
// @name? ? ? ? 在推特個(gè)人頁(yè)面添加高級(jí)搜索按鈕
// @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.;
? ? a.target = '_blank';
? ? a.innerHTML = '查看所有原創(chuàng)推文';
? ? 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...
})();