Blogtruyen.com

Tạo bởi Nguyễn Văn Cao Kỳ

As of 2017-11-22. See the latest version.

// ==UserScript==
// @name          Blogtruyen.com
// @namespace     http://userstyles.org
// @description	  Tạo bởi  Nguyễn Văn Cao Kỳ
// @author        Ani - VN
// @homepage      https://userstyles.org/styles/144396
// @include       http://blogtruyen.com/*
// @include       https://blogtruyen.com/*
// @include       http://*.blogtruyen.com/*
// @include       https://*.blogtruyen.com/*
// @include       http://id.blogtruyen.com*
// @run-at        document-start
// @version       1.2
// ==/UserScript==


setInterval(function(){
    var tiptip = document.getElementsByClassName('tiptip');
    Array.prototype.forEach.call(tiptip, function(el) {
        var id = el.dataset.tiptip;
        var content = document.getElementById(id).cloneNode(true);
        if(content.className.indexOf('hidden') > -1) {
            content.className = content.className.replace('hidden', '');
            content.style.padding = '10px';
            var title = content.getElementsByClassName("bold al-c fs-12")[0];
            if(title) {
                title.parentElement.removeChild(title);
                el.parentElement.appendChild(content);
            }
        }
    });
});