Greasy Fork

Greasy Fork is available in English.

东财股吧增强功能增强

股吧增加一键圈子,问财功能.

目前为 2016-05-08 提交的版本,查看 最新版本

// ==UserScript==
// @name           东财股吧增强功能增强
// @version        16.04.22
// @description    股吧增加一键圈子,问财功能.
// @icon           http://u.thsi.cn/avatar/6460/96036460.gif
// @grant          GM_xmlhttpRequest
// @auther         九得Q:135163
// @namespace      Kanan 
// ==/UserScript==

var locationhref = window.location.href;
if (locationhref.indexOf('guba.eastmoney.com/list')>0){
	var head = document.head || document.getElementsByTagName('head')[0];
	var script = document.createElement('script');
	var style = document.createElement('style');
	script.innerHTML  = '';
	var bodywidth=document.body.clientWidth;
	var bodyHeight=$(window).height()-80;
	style.innerHTML = '#AddDiv{position:fixed; width:'+(bodywidth-978)/2+'px;height:'+bodyHeight+'px;z-index:100;left:'+(bodywidth+978)/2+'px;top:38px;background:#ffffff;//display:none;}#AddDiv2{position:fixed; width:'+(bodywidth-978)/2+'px;height:'+bodyHeight+'px;z-index:100;left:0px;top:38px;background:#ffffff;//display:none;}';
	head.appendChild(script);
	head.appendChild(style);
	var wc='http://www.iwencai.com/stockpick/search?typed=1&preParams=&ts=1&f=1&qs=index_rewrite&selfsectsn=&querytype=&searchfilter=&tid=stockpick&w='+code;
	var qz='http://t.10jqka.com.cn/guba/'+code+'/';
	var newdiv = '<div class="gbbox2" id="thsgnzq" style="display: block;"><div class="gbboxt">同花顺功能增强</div><div class="gbboxb" align="center"  ><a href="'+wc+'"><img src="http://static1.foolyun.com/public483842/images/sp_index_logo.png"></a><a href="'+qz+'"><img src="http://i.thsi.cn/sns/circle/newcircle/header.20151228.jpg"></a><div id="AddDiv"><iframe src="'+qz+'" width="100%" height="100%"  frameborder=0></iframe></div><div id="AddDiv2"><iframe src="'+wc+'" width="100%" height="100%"  frameborder=0></iframe></div></div></div>'; 
	$("#sider").prepend(newdiv); 
	//setTimeout(function(){$("#sider").prepend(newdiv);}, 100);
	//alert(locationhref);
	

}