content-script.js 315 B

12345678910111213
  1. /**
  2. * 用于content-script注入的脚本
  3. */
  4. window.pagemonkeyContentScript = function () {
  5. chrome.runtime.sendMessage({
  6. type: 'fh-dynamic-any-thing',
  7. thing: 'request-monkey-start',
  8. params: {
  9. url: location.href,
  10. tabId: window.__FH_TAB_ID__
  11. }
  12. });
  13. };