[VicPiMakers Projects] kill sticky

Mark G. vpm at palaceofretention.ca
Thu Apr 6 17:47:03 EDT 2023


Hello,

I shared this with Craig and he thinks it's the bee's knees,
so as suggested by him, I'm sending this to the projects list
as a public service.

The idea here is that if you follow these instructions, you can
delete all those floating windows on web pages, in your web
browser that annoy the h-e-double-hockey-sticks out of you.

For firefox only as far as I know.

The attached text file has one line of javascript code,
which is URL encoded (necessary), and can be added as a bookmark.
Open it and copy it into your paste buffer.

Now open your "manage bookmarks" tool and manually add a new one,
best place is at the front of your bookmarks toolbar,
call it 'kill sticky' (as you like), and then in the
URL textarea, paste the one line of javascript.

Now when a web page has nasty cookie pop-ups that stick
to the page, and cover text you are trying to read, you can
click the bookmarklet and nuke them.

Let me know if this works for you.  A good place to test it
is:


https://stackoverflow.com/questions/40077681/ffmpeg-converting-from-mkv-to-mp4-without-re-encoding
-------------- next part --------------
javascript:(function()%7Bdocument.querySelectorAll(%22body%20*%22).forEach(function(node)%7Bif(%5B%22fixed%22%2C%22sticky%22%5D.includes(getComputedStyle(node).position))%7Bnode.parentNode.removeChild(node)%7D%7D)%3Bdocument.querySelectorAll(%22html%20*%22).forEach(function(node)%7Bvar%20s%3DgetComputedStyle(node)%3Bif(%22hidden%22%3D%3D%3Ds%5B%22overflow%22%5D)%7Bnode.style%5B%22overflow%22%5D%3D%22visible%22%7Dif(%22hidden%22%3D%3D%3Ds%5B%22overflow-x%22%5D)%7Bnode.style%5B%22overflow-x%22%5D%3D%22visible%22%7Dif(%22hidden%22%3D%3D%3Ds%5B%22overflow-y%22%5D)%7Bnode.style%5B%22overflow-y%22%5D%3D%22visible%22%7D%7D)%3Bvar%20htmlNode%3Ddocument.querySelector(%22html%22)%3BhtmlNode.style%5B%22overflow%22%5D%3D%22visible%22%3BhtmlNode.style%5B%22overflow-x%22%5D%3D%22visible%22%3BhtmlNode.style%5B%22overflow-y%22%5D%3D%22visible%22%7D)()%3B%0A


More information about the Projects mailing list