Recently, I was tasked with developing a script that could be utilized on any website. As a test, I decided to use the Google search results page.
My goal is simple - to have a full-screen semi-transparent div displayed on any site for cookie notification purposes.
Below is the code I added to the results page:
<div style="position:absolute; z-index:1; width:100%; height:100%; margin:0px; left:0px; opacity:0.5; background-color:blue;"></div>
This code snippet should be inserted before the closing "body" element.
Unfortunately, due to the Google logo and search bar taking precedence, I encountered an issue where...