Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function(request, sender, sendResponse) {
- var regex = new RegExp(request.checkme, "i");
- if(request.pattern == 'A') {
- if (regex.test(document.body.innerHTML)) {
- sendResponse({findresult: "yes"});
- alert(request.checkme + " has been found!");
- } else {
- //Snub them.
- sendResponse({});
- }
Add Comment
Please, Sign In to add comment