第一会所阅读模式

try to take over the world!

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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);

})();