I'm trying to import the 'enable' method from the 'DarkReader' plugin. I'm not so familiar with the JavaScript plugin initialization process in an HTML document.
I opened a tag in the ending of the tag, the source of it directs to the plugin web hosting url.
and inside that, I tried to initialize it with 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>```
Can someone explain how to do that?