I'm attempting to attach a new <div>
element with custom content using a bookmarklet and apply inline CSS. However, the issue I am facing is that the styles from the parent page are interfering with my div.
What would be the best approach to ensure that my bookmarklet styles take precedence over any styles provided by the parent page?
One possible solution could be to set all CSS properties for each element within the div. Is this a recommended practice? Where can I find a comprehensive list of CSS properties?
I came across cleanstate.css, which seems to offer a reset solution.
Would a JavaScript solution be more effective? For instance, detecting which styles are being applied by the parent page and resetting them to default values. It's worth noting that jQuery will be available in this bookmarklet.