stuppid_bot

Untitled

Apr 1st, 2013
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. // chrome.tabs.getCurrent(function(tab) {
  2. // console.log(tab);
  3. // });
  4.  
  5. chrome.tabs.getSelected(null, function(tab){
  6. console.log(tab);
  7. });
  8.  
  9.  
  10. //
  11. // console.log(chrome.webRequest);
  12. chrome.extension.sendMessage('load', function(response) {
  13. console.log(response);
  14. });
  15.  
  16. //
  17.  
  18.  
  19. console.log('started');
  20. // var found = [];
  21.  
  22. chrome.extension.onMessage.addListener(function(cmd, sender, sendResponse) {
  23. // if (cmd == 'load') {
  24. //
  25. // }
  26. // задел на будущее
  27. });
  28.  
  29. chrome.webRequest.onHeadersReceived.addListener(function(info) {
  30. // info.url
  31. console.log(info);
  32. // console.log(info.responseHeaders);
  33. }, {urls: ['*://*/*']}, ['responseHeaders']);
Advertisement
Add Comment
Please, Sign In to add comment