Advertisement
Fenix14977

Untitled

Apr 3rd, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. /*
  2.  
  3. ____ _ _ _____
  4. ( __| _ __ ___ __ __ | | ___ _ __ __| | |___ |
  5. (___ ) | ,_ ) ( _ ) ) ) () ( ( | | ( _ ) | __| ( _ | ( (
  6. ___) | | | | | | (_) | ) V V ( | |___ | (_) | | | | (_| | ( (
  7. |____( |_| |_| )___( )_()_( |_____| )___( |_| )____| (_(
  8.  
  9.  
  10. Please do not steal, or copy.
  11. I will be annoyed at you, learn to do something yourself.
  12.  
  13. */
  14.  
  15. chrome.contextMenus.removeAll(function() {
  16. console.log('Removed all context menus.');
  17. });
  18.  
  19. chrome.contextMenus.create({
  20. 'id': 'main-custom-context',
  21. 'title': 'Reset Settings',
  22. 'type': 'normal',
  23. 'contexts': ['browser_action'],
  24. });
  25. console.log('Added reset options context menu.');
  26.  
  27. chrome.contextMenus.onClicked.addListener(function(info, tab) {
  28. if (info.menuItemId == 'main-custom-context') resetSettings();
  29. console.log('Settings have been reset.');
  30. });
  31.  
  32. chrome.runtime.onInstalled.addListener(resetSettings);
  33. chrome.runtime.onStartup.addListener(checkSettings);
  34.  
  35. function resetSettings() {
  36. let data = {
  37. 'settings': {
  38. 'urls': [
  39. ['Vertix.io Cheat', 'Exploit by Drew Snow for Vertix.io.', 'https://cdn.jsdelivr.net/gh/SnowLord7/vertixio@master/main.js'],
  40. ['Developer Console', 'Custom developer console to bypass blocked consoles on school computers made by Drew Snow.', 'https://cdn.jsdelivr.net/gh/SnowLord7/devconsole@master/main.js'],
  41. ['Funny Troll', 'Troll yourself and your friend with this script made by Drew Snow.', 'https://cdn.jsdelivr.net/gh/SnowLord7/Random-Useful-Scripts@master/troll.js'],
  42. ['Roblox Join Player', 'Join any player in a Roblox game made by Drew Snow.', 'https://cdn.jsdelivr.net/gh/SnowLord7/roblox@master/Join%20Player.js'],
  43. ['Roblox Join Empty Server', 'Join the Roblox server with the least amount of players made by Drew Snow.', 'https://cdn.jsdelivr.net/gh/SnowLord7/roblox@master/Join%20Empty%20Server.js'],
  44. ['Quizlet Modes', 'Exploit by Drew Snow for Quizlet game modes.', 'https://cdn.jsdelivr.net/gh/SnowLord7/quizlet@master/main.js'],
  45. ['Quizlet Live', 'Exploit by Drew Snow for Quizlet live.', 'https://cdn.jsdelivr.net/gh/SnowLord7/quizlet@master/live.js']
  46. ]
  47. }
  48. };
  49. chrome.storage.sync.set(data);
  50. console.log(data);
  51. }
  52.  
  53. function checkSettings() {
  54. chrome.storage.sync.get('settings', function(data) {
  55. if (!data) {
  56. resetSettings();
  57. }
  58. });
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement