theajack / disable-devtool

Disable web developer tools from the f12 button, right-click and browser menu

Home Page:https://theajack.github.io/disable-devtool/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IOS 15 users have problem loading or clicking any page when we have this plugins enabled in the website

josephmiller2000 opened this issue · comments

disable-devtool-auto

  | src='https://cdn.jsdelivr.net/npm/disable-devtool/disable-devtool.min.js'
  | md5='/////////removed/////'
  | tk-name='dt'
  | interval='1500'
  | disable-menu='true'
  | ></script>

I did use this version of JS to disable dev tool in my chat website. For some reason, all IOS 15 users with safari browser and chrome browser had issue loading the page and can't navigate to any page

Or even opening the URL in direct "_blank" also creating an issue closing the tab.

Please take a look at it and fix it.

Although, not a fix, but here's a code to detect iOS via javascript...you can use this to disable the script on IOS specifically

function iOS() {
  return [
    'iPad Simulator',
    'iPhone Simulator',
    'iPod Simulator',
    'iPad',
    'iPhone',
    'iPod'
  ].includes(navigator.platform)
  // iPad on iOS 13 detection
  || (navigator.userAgent.includes("Mac") && "ontouchend" in document)
}

This will return true if iOS and false if not

Fixed! Please upgrade to Version 0.1.7.

This issue still persists in Chrome on iOS.
Its fixed in safari on iOS, but still having this issue on chrome.