Advertisement
achshar

Untitled

Mar 28th, 2011
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. background.html
  2.  
  3. <html>
  4. <body>
  5. <span id="jsonp"><script id="getdata"></script></span>
  6. <script src="js/functions.js" type="text/javascript"></script>
  7. <script src="js/main.js" type="text/javascript"></script>
  8. </body>
  9. </html>
  10.  
  11. functions.js
  12.  
  13. function store(id,value) {
  14. if(value) {
  15. localStorage.setItem(id,value);
  16. } else {
  17. return localStorage.getItem(id);
  18. }
  19. }
  20.  
  21. main.js
  22.  
  23. if(!store('setoptions')) {
  24. store('option:action','pause');
  25. store('option:notification','allow');
  26. store('option:client','uTorrent');
  27. store('option:limit',0);
  28. store('setoptions',1);
  29. }
  30. alert(store('setoptions'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement