Live data from Hacker News

Show HN: I made a Chrome extension to reveal zero-width characters

github.com

71–80 of 99 posts

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#71
post #3

It would be a nice enhancement to do so automatically (rather than on-click), but at least for me, this serves the purpose.

not only that, but display a banner warning at the top of the page that tells the user the the page contains zero-width characters.

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#73

It might make more sense as a clipboard filter. If you're an English speaker that doesn't often handle languages which gain from zero width characters you could just have a listener scan your clipboard for zero-width characters, silently strip them, and then re-populate the clipboard. Although I've been thinking about building a clipboard filter for Windows a lot lately, I'm getting tired of copying text to the addre…

The extension itself could just strip the characters during the copy action only perhaps

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#74

Anything like this for VSCode? Just adding option-space accidentally in a ruby file (after an `end`) will cause ruby to explode and not tell you anything. Randomly deleting code until it runs was my only fix.

There is an extension called Highlight Bad Chars. I installed it after reading this

Brilliant, thanks!

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#76

What about Firefox?

You can use this addon: https://addons.mozilla.org/de/firefox/addon/foxreplace/?src=...

Apply an autoload rule with these settings:

  Name: zero length replacement
  HTML: Output only
  URL: 
  Replace: (\uFEFF|\u200B|\u200C)
  Type: Regular expression
  With: 😳

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#77

firefox ?

You can use this addon: https://addons.mozilla.org/de/firefox/addon/foxreplace/?src=...

Apply an autoload rule with these settings:

  Name: zero length replacement
  HTML: Output only
  URL: 
  Replace: (\uFEFF|\u200B|\u200C)
  Type: Regular expression
  With: 😳

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#79
post #9

I agree with other users who said that it would be nice if this happened automatically instead of on click--I think after the initial novelty wore off, I'd probably forget to click it. It might be cleaner to just strip the non-printing characters and display a number of characters stripped, similar to how ad blockers display the number of ads blocked.

I like the adblock analogy, might work on it, thanks.

Please do, and publish as a real extension - I'd definitely use it

Re: Show HN: I made a Chrome extension to reveal zero-width characters

#80
post #65

Earlier quoted context omitted.

what is cat-v.org? (Obviously I visited that link, read the about page - I'm asking for your summary. it's still not clear to me after my initial visit.)

Nostalgic Unix nerds hating on everything that (i) was not in original Unix, or (ii) in Plan9, or (iii) not implemented by authors of these.

Cynical and disingenuous.
Post reply on HN