TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Filtering out newsletter signup forms embedded in web articles

62 pointsby k1malmost 4 years ago

7 comments

greggturkingtonalmost 4 years ago
I keep a long list of these I can contribute. The authors need to take more advantage of fuzzy attribute matching. Really go after those patterns you see frequently from Mailchimp and other major newsletter vendors first!<p><pre><code> [class*=&quot;mc_embed_signup&quot;] [id*=&quot;mc_embed_signup&quot;] [class*=&quot;FreeNewsletter&quot; i] [class*=&quot;inline-newsletter&quot;] [class*=&quot;newsletter-article&quot;] [class*=&quot;newsletter-form&quot;] [class*=&quot;newsletter-signup&quot;] [class*=&quot;newsletter-tout&quot;] [class*=&quot;newsletter-widget&quot;] [class*=&quot;NewsletterCard&quot; i] [class*=&quot;NewsletterSignup&quot; i] [class*=&quot;newssignup&quot;] [id*=&quot;SignupForm&quot; i] [id*=&quot;signupWrapper&quot; i] </code></pre> CSS isn&#x27;t so simple anymore though, with CSS-in-JS we&#x27;re moving away from deterministic class name. We can still target other attributes with CSS though, which I don&#x27;t see used in these lists nearly enough, for example data attributes:<p><pre><code> [data-title*=&quot;Mailchimp&quot;]</code></pre>
评论 #27509956 未加载
评论 #27513141 未加载
ta988almost 4 years ago
Website owners are desperate to capture your attention, they have a few seconds to do so. What they don&#x27;t realize is that beong annoying is also what causes people to only stay for a few seconds on their site. For me it is a good sign of someone who cares more about advertisement than content so it makes me close the page 99% of the time.
评论 #27503393 未加载
评论 #27514028 未加载
tzahifadidaalmost 4 years ago
Actually I think that a lot of newsletters of professionals i am interested in are worthy and these are edge cases. I will be more worried not seeing these because they were filtered out by some plugin. I would say that if a site has a harassing newsletter then the whole site is probably not worth my time.
评论 #27501150 未加载
评论 #27501888 未加载
rchaudalmost 4 years ago
This by far is by biggest pet peeve of reading online: an article can&#x27;t even be shown in full. It has to be broken up into disembodied sections, with ads, newsletter signups, or a block of links appearing every few paragraphs.<p>Fortunately, the NYT appears to have scaled back on this. I&#x27;m finding that I can do &quot;Print to PDF&quot; on the majority of articles (excl. interactive stories) and the layout is very clean with no interruptions.<p>If that changes, I still have the option of going to FF&#x27;s &quot;reading view&quot; and Print to PDF from there.
评论 #27503621 未加载
bartvkalmost 4 years ago
Personally I use the &quot;No, Thanks&quot; extension.<p>It costs a bit of money. Daniel Kladnik, the developer, provides you with an invoice so you can deduct it as a business, or ask your boss to pay.<p><a href="https:&#x2F;&#x2F;www.no-thanks-extension.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.no-thanks-extension.com&#x2F;</a><p>Note that I haven&#x27;t compared it to Fanboy&#x27;s Annoyance List mentioned in the article. Ages ago, I just wanted a no-configure option.
评论 #27502776 未加载
评论 #27503477 未加载
kilroy123almost 4 years ago
Am I the only one who doesn&#x27;t think these are that big of a deal? I&#x27;d gladly take this over a big ugly ad. Hell ANY ad at all.
betwixthewiresalmost 4 years ago
Most of what I do in a browser is read documents. News articles, blogs, those kinds of things. So I just turn off everything using umatrix BT default. CSS, JS, everything except first party images. It works very well. I&#x27;d rather scroll through broken formatting to get to the meat I&#x27;m trying to get to than tolerate a nonstandard UI just to read a document.<p>I use some web apps (like HN or github) and so I change settings for those sites. My rule of thumb is if your site isn&#x27;t a web app you I don&#x27;t need anything but HTML. Every so often I get third party images or other media that I want to see, so I turn it on. And every so often I get a page that I am only expecting a document but instead get a blank page, indicating to me that they require scripts to be on to receive a text document. I immediately as a rule close them. If you need to see where my cursor is or whatever just for me to read what you have to say I&#x27;m not interested in reading what you have written.