text: // ==UserScript==
  // @name         drama.net
  // @namespace    ngsoft/drama.net
  // @version      1.0.1
  // @description  UI Remaster
  // @author       daedelus
  // @include        *://*drama.net/*
  // @noframes
  // @grant none
  // @updateURL   https://raw.githubusercontent.com/ngsoft/archives/master/dramanet.user.js
  // @downloadURL https://raw.githubusercontent.com/ngsoft/archives/master/dramanet.user.js
  // ==/UserScript==
  
  
  (function() {
  
      var toolbox = {
  
          loader: {
              timeout: 1500,
              show: function() {
                  toolbox.loader.onshow();
              },
              hide: function() {
                  setTimeout(toolbox.loader.onhide, toolbox.loader.timeout);
              },
              onshow: function() {
                  document.body.style.opacity = '0';
              },
              onhide: function() {
                  document.body.style.opacity = '1';
              }
          },
          ui: {
              addcss: function(css) {
                  html = '<style type="text/css"><!-- ' + css + ' --></style>';
                  $('body').append(html);
              }
          },
          init: function(fn) {
              window.adblock = false;
              window.adblock2 = false;
              window.turnoff = true;
              window.open = function() {};
              toolbox.ready(fn);
          },
          onload: function() {},
          load: function() {},
          wait: function() {
              toolbox.onload();
              interval = setInterval(function() {
                  if (typeof $ !== 'undefined') {
                      toolbox.load();
                      clearInterval(interval);
                  }
              }, 50);
          },
          ready: function(fn) {
              toolbox.load = fn;
              if (document.readyState != 'loading') {
                  toolbox.wait();
              } else {
                  document.addEventListener('DOMContentLoaded', toolbox.wait);
              }
  
          }
      };
      var dramanet = {
          ui: {
              css: `
                  .hidden, div[class*="-ad"], div[id*="BB_SK"]{display: none!important;}
              `,
              player: {
  
              }
          },
          click: function() {
              toolbox.ui.loader.show();
          },
          init: function() {
              toolbox.ui.addcss(dramanet.ui.css);
  
              $('a[href^="/"').click(dramanet.click);
              $('a[href*="drama.net"').click(dramanet.click);
  
              toolbox.loader.hide();
          }
      };
      toolbox.onload = function() {
          toolbox.loader.show();
      };
      toolbox.init(dramanet.init);
  })();
  