← All examples

JavaScript Ads & clutter scholar.google.com

Scholar: hide results with few citations

Hides results with fewer than five citations so you can focus on higher-impact papers.

Code to copy

// Hide results with fewer than 5 citations to focus on high-impact papers
(function () {
  var MIN = 5;
  function filter() {
    document.querySelectorAll('div.gs_r.gs_or.gs_scl, div.gs_ri').forEach(function (row) {
      var citeLink = row.querySelector('a[href*="cites="]');
      var n = 0;
      if (citeLink) {
        var m = (citeLink.textContent || '').match(/(\d[\d,]*)/);
        if (m) { n = parseInt(m[1].replace(/,/g, ''), 10) || 0; }
      }
      var card = row.closest('div.gs_r') || row;
      card.style.display = n < MIN ? 'none' : '';
    });
  }
  filter();
  new MutationObserver(function () {
    clearTimeout(window.__jzSchCite);
    window.__jzSchCite = setTimeout(filter, 400);
  }).observe(document.body, { childList: true, subtree: true });
})();

How to use this example

  1. Copy the code with the button above.
  2. Install JustZix (2 minutes) and open the extension on the target page.
  3. Add a new rule matching that page.
  4. Paste the code into the rule's JavaScript panel and save — it runs on every page visit.

Rate this example

No ratings yet — be the first.

Does this example work?

Snippets are useless without somewhere to paste them.

JustZix takes 2 minutes to install and runs your code on every matching page. No account, no payment.

Download free See use cases