kill-sticky
dialog-polyfill
kill-sticky | dialog-polyfill | |
---|---|---|
20 | 8 | |
826 | 2,447 | |
- | 0.0% | |
0.0 | 0.0 | |
over 1 year ago | 3 months ago | |
JavaScript | JavaScript | |
- | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
kill-sticky
-
Ask HN: What bookmarklets do you use?
Threw together a bookmarklet that sends a page over to a personal, private subreddit the other day that I've been using a ton. Also a HUGE fan of kill-sticky.
Would love to throw some other good ones up there.
-
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
- How Many Lines of C It Takes to Execute a and B in Python?
-
Eclipse: The Demo that Sold 3D to Nintendo
Kill Sticky bookmarklet[1]. Also works on mobile. Get in the habit of clicking it, you'll start using it a lot to recover that extra inch of vertical space that web devs love to take away from you for some bizarre reason.
https://github.com/t-mart/kill-sticky
- The 8-Bit Era: Eight Iconic Processor Designs – By Babbage
- The novel HTTP/2 'Rapid Reset' DDoS attack
-
The Ideal Viewport Doesn't Exist
I'm going to change your life: https://github.com/t-mart/kill-sticky
Works in every browser (I use it in Safari on iOS and Firefox on desktop). These fucking stupid sticky elements are so common, I almost reflexively go hit this bookmarklet on every website now. It makes the web so much better.
- Remove Headers Stuck To The Top Of Websites You View? Like The menus At the top of websites that take up half the screen and dont go away when you scroll down.
- Things I learned after getting users
-
The <Dialog> Element
In the meantime, NoScript[1] frequently avoids them entirely by just showing the page contents with no JS at all, and Kill Sticky[2] cleans up the ones that require JS to show you the content you actually want.
[1] NoScript for Firefox & Chrome-based browsers: https://noscript.net/getit/
[2] Kill Sticky bookmarklet for all browsers including mobile: https://github.com/t-mart/kill-sticky
Or, a Firefox extension that adds a toolbar button: https://addons.mozilla.org/en-US/firefox/addon/kill-sticky/
-
Pool Rule
kill-sticky just JavaScript so it will work on any browser
dialog-polyfill
-
The <Dialog> Element
> - Z-index has no effect in the top-layer. No need to compete for a higher z-index.
This is the kind of boring feature that can end up saving huge amounts of developer time. Z-indexing in CSS is kind of annoying and I've seen projects just detach dialogs from their normal position in the DOM entirely to get around stacking errors before.
----
Minor question:
> - There is only one `top-layer` but it can have many children. Last opened === current element on top.
Is this true? The spec says:
> The top layer is an ordered set of elements, rendered in the order they appear in the set. The last element in the set is rendered last, and thus appears on top.
I'm still playing around with `dialog` elements, so you may well be right, I'm just having trouble finding the actual spec rules about what happens when there are multiple dialogs and they're being simultaneously manipulated.
----
> - Not supported in Safari <= 15.3
Worth noting that there is a polyfill (https://github.com/GoogleChrome/dialog-polyfill), but that the polyfill comes with some fairly large limitations, specifically that they don't advise dialogs be used as children of elements with their own stacking context.
This is reasonable, but also... my first thought when I originally ran into `dialog` was "finally I can stop worrying about which of my elements create new stacking contexts!" -- so it does decrease the usefulness quite a bit.
- La espera terminó: el elemento <dialog> alcanza pleno soporte
-
Is learning Vue instead of React a mistake?
Yeah, Safari is pretty often behind the other popular browsers. But, you can generally predict that by looking for any given feature on MDN and check the "Browser compatibility" section. Sometimes, there are polyfills available that sort of "force" a feature to work across every browser.
-
Can we use <dialog> yet?
(Searching for "polyfill " will usually get you good results - in this case the first result appears to be a library maintained by the Chrome team: https://github.com/GoogleChrome/dialog-polyfill )
-
New WebKit Features in Safari 15.4
This does not make sense. Of course new functionality won't work on old browsers. is easy to polyfill well: https://github.com/GoogleChrome/dialog-polyfill
-
Just a single tag can create this dialog box. <dialog> tag with open attribute created this simple styled centered box. => <dialog open>This is a dialog box</dialog>
GoogleChrome / dialog-polyfill
- Using for Menus and Dialogs Is an Interesting Idea
What are some alternatives?
icestation-32 - Compact FPGA game console
a11y-dialog - A very lightweight and flexible accessible modal dialog script.
pagefreeze
webmidi-test - 🎵 Web MIDI Test page with basic device hotplug support
cpython - Python, but with pluggable malloc
devadvance
tracker-control-android - TrackerControl Android: monitor and control trackers and ads.
caniuse - Raw browser/feature support data from caniuse.com
.NET Runtime - .NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
sciter - Sciter: the Embeddable HTML/CSS/JS engine for modern UI development
Fenix - ⚠️ Fenix (Firefox for Android) moved to a new repository. It is now developed and maintained as part of: https://github.com/mozilla-mobile/firefox-android
autoprefixer - Parse CSS and add vendor prefixes to rules by Can I Use