Greasy Fork

Greasy Fork is available in English.

淘宝圈子电脑版

用于显示手机版淘宝论坛里圈子

当前为 2016-08-24 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         淘宝圈子电脑版
// @namespace    http://tampermonkey.net/
// @version      20160825
// @description  用于显示手机版淘宝论坛里圈子
// @author       sbdx
// @match        http://h5.m.taobao.com/bala/community.htm*
// @match        http://h5.m.taobao.com/ocean/topic.htm*
// @grant unsafeWindow
// ==/UserScript==
//列表页
//http://h5.m.taobao.com/bala/community.htm?communityId=84016
//内容页
//http://h5.m.taobao.com/ocean/topic.htm?topicId=4031903899
(function() {
	'use strict';
	if(location.href.search('community.htm')!== -1)
	{
		$('.card').live('mouseover mouseout click', function(event){
			if (event.type == 'mouseover')
			{
				$(this).css({background:'#f7f7f9',cursor:'pointer'});
			}
			else if (event.type == 'mouseout')
			{
				$(this).css({background:'',cursor:'auto'});
			}
			else
			{
				var url=$(this).attr('data-url');
				//location.href=url;
				unsafeWindow.open(url);
			}
		});
	}
	else if(location.href.search('topic.htm')!== -1)
	{
		console.log("设置图片宽度为默认");
		//设置图片宽度为默认
		setTimeout(function(){
			$("img").each(function(i){
				this.src=this.src.replace('_560x560q90.jpg','');
				$(this).css('width','auto');
			});
			//$($("img")).css('width','auto');
		},1000);
	}
})();