Norway: The country where no salaries are secret https://www.bbc.com/news/magazine-40669239
Removing anonymity of searching made a significant difference as did letting you know who looked you up. This is a form of social pressure that seems to balance out their need for transparency versus the "peeping tom" aspect of open salary data.
There are some less than good social impacts but I'd say on balance the overall result is positive.
I actually think any job ad without a salary indication should be seen with suspicion and mistrust. Its basically false or deceptive advertising. Its like going to a shop to buy some fruit but them being sheepish about the price. Negotiations then ensue and you give them an offer and they say "that isn’t realistic". But you easily counter with "well you should have listed the price". The ensuing negotiation includes sich phrases as "you should know the market" and all sorts of "competitive market" slogans.
In the end they simply want to clamp the price down and take advantage of ignorance rather than any kind of ethical stance. We tolerate this unethical behavior because "that's how it is".