FAH Banner Fix

Fixes Jiggmin's folding at home banner.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript== 
// @name FAH Banner Fix
// @namespace http://jiggmin.com/member.php?12415
// @description Fixes Jiggmin's folding at home banner.
// @grant none
// @require http://code.jquery.com/jquery-1.9.1.js
// @include http://jiggmin.com/*
// @include http://www.jiggmin.com/*
// @version 2.0.1
// ==/UserScript==

$('.signaturecontainer, blockquote.postcontent.restore, .blogbody.postcontainer, blockquote.postcontent.restore.preview, blockquote.posttext.restore').html(function(){
    // support for siggy, posts, blog posts and comments, PMs, siggy/blog/post/PM previews, etc. ^^^
    return $(this)
    .html()
    .replace(/\[fah_banner\]/g,'<embed width="150" height="55" wmode="opaque" flashvars="userName=')
    .replace(/\[\/fah_banner\]/g,'" src="http://jiggmin.com/folding_at_home/team_jiggmin_banner.swf?v2">');
});