This commit is contained in:
tika 2022-11-03 05:50:43 +01:00
parent 288956edaf
commit d2a9ca016d
1 changed files with 1 additions and 0 deletions

1
public/nodarkreader.js Normal file
View File

@ -0,0 +1 @@
!function(){const e=document.createElement("meta");e.name="darkreader",e.content="NO-DARKREADER-PLUGIN";const t=function(){!function(){document.querySelector('meta[content="'+e.content+'"]')||document.head.appendChild(e);let t=document.querySelector('meta[name="'+e.name+'"]');t&&t.content!=e.content&&t.remove()}(),function(){for(const e of document.head.getElementsByClassName("darkreader"))e.remove()}()},n={attributes:!1,childList:!0,subtree:!1},o=new MutationObserver(t);!document.querySelector('meta[content="'+e.content+'"]')&&document.querySelector('meta[name="'+e.name+'"]')?console.error("Please add the line bellow to your index.html:\n",'<meta name="darkreader" content="NO-DARKREADER-PLUGIN">\n',"or you may encounter a performance issue!\n","\nplease take a look at: https://github.com/hadialqattan/no-darkreader#usage"):(o.observe(document.head,n),t())}();