Quora.com (mobile) hide 'View in app' overlay

Remove the "View in app" overlay on quora.com in mobile browsers

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @namespace     https://openuserjs.org/users/cuzi
// @name          Quora.com (mobile) hide 'View in app' overlay
// @description   Remove the "View in app" overlay on quora.com in mobile browsers
// @copyright     2019, cuzi (https://openuserjs.org/users/cuzi)
// @license       MIT
// @version       3
// @include       https://quora.com/*
// @include       https://*.quora.com/*
// @grant none
// ==/UserScript==

// ==OpenUserJS==
// @author cuzi
// ==/OpenUserJS==

function remove(query) {
  const e = document.querySelector(query)
  if (e) e.remove()
}

const removeOverlayIV = window.setInterval(function () {
  remove('.OpenInAppBanner')
  let e
  if (document.querySelector('.ZapdosWallWrapper.show .ViewInAppLink')) {
    remove('.ZapdosWallWrapper.show')
    clearInterval(removeOverlayIV)
  }
  e = document.querySelector('.q-absolute.qu-bg--blue')
  if (e && e.textContent.indexOf('App') !== -1) {
    e.remove()
    clearInterval(removeOverlayIV)
  }

}, 2000)

const removeSignupOverlayIV = window.setInterval(function () {
  remove('.OpenInAppBanner')
  let e = document.querySelector('.new_signup_dialog')
  if (e) {
    e.parentNode.remove()
  }
  e = document.getElementById('page_wrapper')
  if (e) {
    e.style.filter = "blur(0px)"
  }
  e = document.body
  if (e) {
    e.classList.remove('signup_wall_prevent_scroll')
  }

 e = document.querySelector('.modal_signup_dialog')
 if (e) {
   while(e.parentNode!= document.body) {
     e = e.parentNode
   }
   e.remove()
 }


}, 1000)