Home | History | Annotate | Download | only in sandwichbar
      1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 var regex = /sandwich/gi;
      6 matches = document.body.innerText.match(regex);
      7 if (matches) {
      8   var payload = {
      9     count: matches.length    // Pass the number of matches back.
     10   };
     11   chrome.extension.sendRequest(payload, function(response) {});
     12 }
     13