Anti-AntiAdblock on ruanyifeng.com

Make RuanYiFeng Happy

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 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    Anti-AntiAdblock on ruanyifeng.com
// @description Make RuanYiFeng Happy
// @version 1
// @grant   none
// @inject-into auto
// @supportURL https://github.com/whtsky/userscripts/issues
// @match   *://*.ruanyifeng.com/*
// @namespace https://greasyfork.org/users/164794
// ==/UserScript==

const el = document.getElementById('main-content')

const ryf = el.innerHTML

function ruanyifeng() {
  document.getElementsByClassName('asset-meta')[0].nextElementSibling.style = 'display:none'
  el.innerHTML = ryf
  el.style.display = 'block'
  const e = setTimeout(ruanyifeng, 1001)
  for (let i = 0; i <= e; i++) {
    clearTimeout(i)
  }
}

const e = setTimeout(ruanyifeng, 1001)
for (let i = 0; i < e; i++) {
  clearTimeout(i)
}