第一会所阅读模式

try to take over the world!

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==

// @name         第一会所阅读模式

// @namespace    http://tampermonkey.net/

// @version      0.5

// @description  try to take over the world!

// @author       You

// @match        http://38.103.161.226/forum/*

// @grant        none

// ==/UserScript==



(function() {

    'use strict';

var className = document.getElementsByClassName("t_msgfont");

var str = className[0].innerHTML;

str=str.replace(/ /ig,'');//去掉
str=str.replace("<table>(.*?)</table>",'');//去掉


document.write('<body style="background-color:#9fb157;line-height:200%;"><div style="margin: 5% auto 5% auto;width: 50%;background-color:#333333;color:#009688;box-shadow: 0 2px 10px 1px rgba(0, 0, 0, 0.2);">'+'<div style="padding:5%;font-size:12px;">'+str+'</div>'+'</div></body>');

var obj = document.getElementsByTagName("table");
obj.parentNode.removeChild(obj);

})();