Advertisement
Guest User

Untitled

a guest
Jan 31st, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. script.
  2. var ext_id = "haefbbimkpppfdgddidickljcpbhpmmp";
  3.  
  4. var sites = {
  5. 'jas': {
  6. name: 'LiveJasmin',
  7. open: {
  8. link: 'http://modelcenter.jasmin.com/en/login',
  9. user: '#{acct.conturi.lj.user}',
  10. pass: '#{acct.conturi.lj.pass}'
  11. },
  12. exec: {
  13. name: 'AutoLJ.exe',
  14. args: '#{acct.conturi.lj.user} #{acct.conturi.lj.pass}'
  15. }
  16. },
  17. 'mat': {
  18. name: 'Streamate',
  19. open: {
  20. link: 'https://www.streamatemodels.com/login.php',
  21. user: '#{acct.conturi.mate.user}',
  22. pass: '#{acct.conturi.mate.pass}'
  23. },
  24. },
  25. 'mfc': {
  26. name: 'MFC',
  27. open: {
  28. link: 'https://www.myfreecams.com/modelweb/',
  29. user: '#{acct.conturi.mfc.user}',
  30. pass: '#{acct.conturi.mfc.pass}'
  31. },
  32. },
  33. 'nkd': {
  34. name: 'Naked',
  35. open: {
  36. link: 'http://models.naked.com/login',
  37. user: '#{acct.conturi.naked.user}',
  38. pass: '#{acct.conturi.naked.pass}'
  39. },
  40. exec: {
  41. name: 'AutoNK.exe',
  42. args: '#{acct.conturi.naked.user} #{acct.conturi.naked.pass}'
  43. }
  44. },
  45. 'skype': {
  46. name: 'Skype',
  47. exec: {
  48. name: 'AutoSky.exe',
  49. args: ''
  50. }
  51. }
  52. }
  53.  
  54. chrome.runtime.sendMessage(ext_id, { command: 'sites', sites: sites }); //seteaza date situri in extensie
  55.  
  56. $(document).ready(function()
  57. {
  58. for (var id in sites) { //adauga butoane
  59. var btn = $('<a id="' + id + '" href="#">' + sites[id].name + '</a>');
  60. btn.click(function(event)
  61. {
  62. $(event.target).hide(); //ascunde butonul, ar trebui disable
  63. chrome.runtime.sendMessage(ext_id, { command: 'start', id: event.target.id });
  64. setTimeout(function() { $(event.target).show(); }, 5000); //activeaza butonul din nou dupa X secunde
  65. });
  66. $("#sites").append(btn);
  67. }
  68. });
  69.  
  70. div#sites
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement