Global Constant
Steve Nay's ramblings

Hiding the "personal appeal" banners on Wikipedia using Kynetx

I’ve already seen the Wikipedia banners a million times: “Please read this personal appeal from Jimmy Wales/Sue Gardner/whoever”. I’m not interested in seeing them anymore. So I wrote a simple Kynetx app to get rid of them.

Here’s the code:

ruleset a163x33 {
  meta {
    name "Hide Wikipedia notices"
    description <<
      Hides the siteNotice>centralNotice divs at the top of Wikipedia
      (such as the "personal appeals" from people)
    >>
    author "Steve Nay"
    logging off
  }

  dispatch {
    domain "wikipedia.org"
  }

  global {
    css <<
      #siteNotice > #centralNotice { display: none; }
    >>;
  }

  rule hideNotice {
    select when web pageview "en.wikipedia.org/w(iki)?/(.*)"
    noop();
  }
}

It basically just emits some CSS that will hide all the div tags with the id centralNotice that occur as direct children of the siteNotice divs. Then it does that any time you visit a page on Wikipedia. Really simple.

Now those banners will never appear at the top of Wikipedia articles anymore!

You can get this app on the Kynetx MarketPlace.

Older article
Collaborative coding