UNPKG

playwright-test

Version:

Run mocha, zora, uvu, tape and benchmark.js scripts inside real browsers with playwright.

11 lines (9 loc) 297 B
/* eslint-disable no-console */ /* eslint-disable no-undef */ chrome.browserAction.onClicked.addListener((tab) => { // No tabs or host permissions needed! console.log('Turning ' + tab.url + ' red!') chrome.tabs.executeScript({ code: 'document.body.style.backgroundColor="red"', }) })