I need help with importing the 'enable' method from the 'DarkReader' plugin into my HTML document. I am not very experienced with the JavaScript plugin initialization process.
After opening a <script> tag within the closing </body> tag, I linked it to the plugin's web hosting URL.
Then, I attempted to initialize it using this script:
<script src="https://unpkg.com/darkreader">
import {
enable as enableDarkMode,
disable as disableDarkMode,
} from 'darkreader';
</script>
<button id="tt" onclick="enableDarkMode({
brightness: 100,
contrast: 90,
sepia: 10,
});">
CLICK
</button>