mmmturkeybacon Show Hidden Content in Quotes

Replaces ***Hidden content cannot be quoted.*** with the hidden content if the quoted post is on the same page as the post that is quoting it.

目前為 2016-03-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name        mmmturkeybacon Show Hidden Content in Quotes
// @version     1.00
// @description Replaces ***Hidden content cannot be quoted.*** with the hidden content if the quoted post is on the same page as the post that is quoting it.
// @author      mmmturkeybacon
// @namespace   http://userscripts.org/users/523367
// @match       http://mturkgrind.com/threads/*
// @match       http://www.mturkgrind.com/threads/*
// @require     https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @grant       GM_log
// ==/UserScript==

$(document).ready(function()
{
    $('blockquote[class="quoteContainer"] > div[class="quote"] > b:contains("***Hidden content cannot be quoted.***")').each(function()
    {
        var post_id = $(this).parent().parent().prev().find('a[href^="goto"]').attr('href').split('#')[1];
        var $hidden_content = $('li[id="'+post_id+'"] div[class="bbCodeBlock bbCodeVfcHH UnhiddenContent"] blockquote');
        if ($hidden_content.length > 0)
        {
            $(this).parent().parent().addClass('expanded');
            $(this).after($hidden_content.html());
            $(this).remove();
        }
    });
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址