GC - Quick Links

A link to change your active pet

  1. // ==UserScript==
  2. // @name GC - Quick Links
  3. // @author Mousekat
  4. // @namespace https://greasyfork.org/users/748951
  5. // @version 1.0
  6. // @description A link to change your active pet
  7. // @include *grundos.cafe/*
  8. // @exclude https://www.grundos.cafe/~*
  9. // @exclude https://grundos.cafe/process/
  10. // @exclude https://grundos.cafe/island/training/complete/*
  11. // @exclude https://www.grundos.cafe/userlookup/*
  12. // @exclude https://www.grundos.cafe/gallery/view/?username=*
  13. // @exclude https://www.grundos.cafe/help/profile/preview/
  14. // @exclude https://www.grundos.cafe/petlookup/?pet_name=*
  15. // ==/UserScript==
  16.  
  17. //for best viewing change the #aio_sidebar 'top' css to 20px
  18.  
  19. //change this to you main pets name, capitalization is important
  20. var petname = "Britney"
  21.  
  22. //change icons here
  23. var petnameicon = "🌷"
  24. var quickstockicon = "✨"
  25. var dicearooicon = "🎲"
  26. var kadsicon = "🐈"
  27.  
  28. //to change the location chage the values for top and left below
  29.  
  30. //code
  31. var link ="<a href='/setactivepet/?pet_name=" + petname + "'>" + petnameicon +
  32. "</a> <a href='/quickstock/'>" + quickstockicon +
  33. "</a> <a href='/games/dicearoo/'>" + dicearooicon +
  34. "</a> <a href='/games/kadoatery/'>" + kadsicon +
  35. "</a>"
  36.  
  37. if (document.getElementsByName("a").length > 0) {
  38.  
  39. var PPNContainer = document.createElement("div");
  40. PPNContainer.id = "PPNContainer";
  41. document.body.appendChild(PPNContainer);
  42. PPNContainer.innerHTML ="<p style='font-size: 13px'>" + link + "</style>"
  43. PPNContainer.style = `
  44. position:absolute;
  45. top:-10;
  46. left:805;
  47. background:transparent;
  48. padding-top:1px;
  49. padding-bottom:1px;
  50. font-size:15px;
  51. color:#00000;
  52. text-align:left;
  53. `
  54. }