Rainbow Theme V4

Original: https://github.com/haykam822/Roblox.com-Rainbow-Fade

  1. // ==UserScript==
  2. // @name Rainbow Theme V4
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.4
  5. // @description Original: https://github.com/haykam822/Roblox.com-Rainbow-Fade
  6. // @author haykam821 (edited by endless)
  7. // @match *://roblox.com/
  8. // @grant none
  9. // ==/UserScript==
  10. 'use strict';
  11.  
  12.  
  13. let _fill = CanvasRenderingContext2D.prototype.fill;
  14. // https://github.com/shlongisdookielol/shlongScripts/blob/main/Diep.io%20Glow
  15. CanvasRenderingContext2D.prototype.fill = function (args) {
  16. this.strokeStyle = this.fillStyle;
  17. this.shadowColor = this.fillStyle;
  18. this.shadowBlur = 20;
  19. this.stroke();
  20. this.fillStyle = "transparent";
  21. this.lineWidth = 7.5;
  22. _fill.apply(this, args);
  23. };
  24. const script = document.createElement("script");
  25. script.src = "https://cdnjs.cloudflare.com/ajax/libs/chroma-js/1.3.7/chroma.min.js";
  26. document.head.append(script);
  27. script.addEventListener('load', () => {
  28. const colors = chroma.scale(['red', 'orange', 'yellow', 'lime', 'cyan', 'mediumpurple', 'red']).colors(1000);
  29. let index = 0;
  30. setInterval(() => {
  31. index += 1;
  32. if (index > colors.length) index = 0;
  33. const scale = "0x" + colors[index].substr(1, Infinity);
  34. const black = [ 0, 1, 8, 9, 10, 11, 13, 14, 16, 17 ]
  35. black.forEach(function(i) {
  36. input.execute(`net_replace_color ${i} 0x000000`);
  37. });
  38. black.splice(0, black.length, ...[
  39. 'ren_score_bar_fill_color',
  40. 'ren_xp_bar_fill_color',
  41. 'ren_health_fill_color',
  42. 'ren_background_color'
  43. ]);
  44. black.forEach(function(i) {
  45. input.execute(i + ' 0x000000');
  46. });
  47. input.set_convar(`ren_stroke_soft_color`, false);
  48. input.set_convar(`ren_raw_health_values`, true);
  49. input.execute(`ren_border_color 0xc7c7c7`);
  50. var rainbow = [
  51. 'net_replace_color 12',
  52. 'net_replace_color 2',
  53. 'net_replace_color 15',
  54. 'ren_stroke_solid_color',
  55. 'ren_bar_background_color',
  56. 'ren_health_background_color',
  57. 'ren_minimap_background_color'
  58. ];
  59. rainbow.forEach(function(i) {
  60. input.execute(i + ' ' + scale);
  61. });
  62. input.execute(`ui_replace_colors` + ` ${scale}`.repeat(8));
  63. });
  64. });