Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- background.html
- <html>
- <body>
- <span id="jsonp"><script id="getdata"></script></span>
- <script src="js/functions.js" type="text/javascript"></script>
- <script src="js/main.js" type="text/javascript"></script>
- </body>
- </html>
- functions.js
- function store(id,value) {
- if(value) {
- localStorage.setItem(id,value);
- } else {
- return localStorage.getItem(id);
- }
- }
- main.js
- if(!store('setoptions')) {
- store('option:action','pause');
- store('option:notification','allow');
- store('option:client','uTorrent');
- store('option:limit',0);
- store('setoptions',1);
- }
- alert(store('setoptions'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement