// ==UserScript==
// @name b站空间展示当前uid粉丝数等
// @namespace https://space.bilibili.com/29058270
// @namespace https://github.com/wuxintlh
// @version 0.1.1.3
// @description 一个没啥用的插件
// @author 桜wuxin
// @match https://space.bilibili.com/*
// @downloadURL https://update.greasyfork.icu/scripts/407986/b%E7%AB%99%E7%A9%BA%E9%97%B4%E5%B1%95%E7%A4%BA%E5%BD%93%E5%89%8Duid%E7%B2%89%E4%B8%9D%E6%95%B0%E7%AD%89.user.js
// @updateURL https://update.greasyfork.icu/scripts/407986/b%E7%AB%99%E7%A9%BA%E9%97%B4%E5%B1%95%E7%A4%BA%E5%BD%93%E5%89%8Duid%E7%B2%89%E4%B8%9D%E6%95%B0%E7%AD%89.meta.js
// ==/UserScript==
window.addEventListener('load',function(){
if(document.querySelector('.n-statistics')){
var father = document.querySelector('.n-statistics');
var body = document.querySelector('#app');
var box = document.createElement('div');
var scroll = document.createElement('span');
var sub = document.createElement('span');
body.appendChild(scroll);
scroll.style.position = 'absolute';
scroll.style.left = '0px';
scroll.style.top = '480px'
scroll.style.width = '80px';
scroll.style.height = '20px';
scroll.innerHTML = '点击关闭';
scroll.style.backgroundColor = 'red'
scroll.style.fontSize = '20px';
scroll.style.userSelect = 'none';
body.appendChild(sub);
sub.style.position = 'absolute';
sub.style.left = '80px';
sub.style.top = '480px';
sub.style.width = 'auto';
sub.style.height = '20px';
sub.style.fontSize = '20px';
sub.style.userSelect = 'none';
sub.style.background = 'rgb(255,0,255)';
body.appendChild(box);
box.style.position = 'absolute';
box.style.display = 'block';
box.style.backgroundColor = 'rgba(255,192,203,.2)';
box.style.left = '0px';
box.style.top = '500px';
box.style.borderTopRightRadius = '25px';
box.style.borderBottomRightRadius = '25px';
var a = father.querySelectorAll('a');
var i = null;
for(i=0;i<2;i++){
var node = document.createElement('span');
box.appendChild(node);
if(i == 0){
node.innerHTML = '关注数:' + a[i].title + '
';
}else{
node.innerHTML = '粉丝数:' + a[i].title + '
';
}
node.className = 'SakuraBoxNode';
};
var div = father.querySelectorAll('div');
for(i=0;i