Greasy Fork is available in English.

✅ RoVerify | Roblox Verification Badge

A simple script that adds the Roblox verification badge to your name.

  1. // ==UserScript==
  2. // @name ✅ RoVerify | Roblox Verification Badge
  3. // @namespace https://github.com/Korsinemi
  4. // @version 2.5
  5. // @description A simple script that adds the Roblox verification badge to your name.
  6. // @icon https://en.help.roblox.com/hc/article_attachments/7997146649876/Roblox_Verified_Badge.png
  7. // @supportURL https://gist.github.com/Korsinemi/fbd0aba2579c62553f14db72a0a1b228
  8. // @author Korsinemi
  9. // @match https://www.roblox.com/*
  10. // @match https://create.roblox.com/*
  11. // @grant GM_setValue
  12. // @license MIT
  13. // @name:zh-CN ✅ RoVerify | Roblox 验证徽章
  14. // @description:zh-CN 一个简单的脚本,将 Roblox 验证徽章添加到您的名称中。
  15. // @name:es ✅ RoVerify | Insignia de Verificación de Roblox
  16. // @description:es Un simple script que agrega la insignia de verificación de Roblox a tu nombre.
  17. // @name:hi ✅ RoVerify | रोब्लॉक्स सत्यापन बैज
  18. // @description:hi आपके नाम में रोब्लॉक्स सत्यापन बैज जोड़ने के लिए एक सरल स्क्रिप्ट।
  19. // @name:ar ✅ RoVerify | شارة التحقق من روبلوكس
  20. // @description:ar سكريبت بسيط يضيف شارة التحقق من روبلوكس إلى اسمك.
  21. // @name:pt ✅ RoVerify | Insignia de Verificação do Roblox
  22. // @description:pt Um simples script que adiciona a insígnia de verificação do Roblox ao seu nome.
  23. // @name:ru ✅ RoVerify | Значок верификации Roblox
  24. // @description:ru Простой скрипт, который добавляет значок верификации Roblox к вашему имени.
  25. // @name:ja ✅ RoVerify | Roblox 認証バッジ
  26. // @description:ja Robloxの名前に Roblox 認証バッジを追加するシンプルなスクリプト。
  27. // @name:de ✅ RoVerify | Roblox-Verifizierungsabzeichen
  28. // @description:de Ein einfaches Skript, das das Roblox-Verifizierungsabzeichen zu Ihrem Namen hinzufügt.
  29. // @name:fr ✅ RoVerify | Badge de Vérification Roblox
  30. // @description:fr Un simple script qui ajoute le badge de vérification Roblox à votre nom.
  31. // ==/UserScript==
  32. class Checkmark {
  33. constructor(profileSelectors) {
  34. this.profileSelectors = profileSelectors;
  35. this.badgeConfig = {
  36. spaceCharacter: ' ',
  37. src: this.svgBadge,
  38. title: 'Verified',
  39. alt: 'Verified Badge',
  40. style: {
  41. width: '28px',
  42. height: '28px',
  43. marginBottom: '2px'
  44. }
  45. };
  46. }
  47. svgBadge = `data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28' fill='none'%3E%3Cg clip-path='url(%23clip0_8_46)'%3E%3Crect x='5.88818' width='22.89' height='22.89' transform='rotate(15 5.88818 0)' fill='%230066FF'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M20.543 8.7508L20.549 8.7568C21.15 9.3578 21.15 10.3318 20.549 10.9328L11.817 19.6648L7.45 15.2968C6.85 14.6958 6.85 13.7218 7.45 13.1218L7.457 13.1148C8.058 12.5138 9.031 12.5138 9.633 13.1148L11.817 15.2998L18.367 8.7508C18.968 8.1498 19.942 8.1498 20.543 8.7508Z' fill='white'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_8_46'%3E%3Crect width='28' height='28' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E`
  48. createSpaceElement() {
  49. let spaceElement = document.createElement('span');
  50. spaceElement.textContent = this.badgeConfig.spaceCharacter;
  51. return spaceElement;
  52. }
  53. createVerifiedBadge(profileElement) {
  54. let fontSize = parseFloat(window.getComputedStyle(profileElement).fontSize);
  55. let iconSize = fontSize * 0.9;
  56. let verifiedBadge = document.createElement('img');
  57. verifiedBadge.className = 'profile-verified-badge-icon';
  58. verifiedBadge.src = this.badgeConfig.src;
  59. verifiedBadge.title = this.badgeConfig.title;
  60. verifiedBadge.alt = this.badgeConfig.alt;
  61. verifiedBadge.style.width = iconSize + 'px';
  62. verifiedBadge.style.height = iconSize + 'px';
  63. return verifiedBadge;
  64. }
  65. appendBadgeToProfile(profileElement) {
  66. profileElement.style.marginBottom = this.badgeConfig.style.marginBottom;
  67. profileElement.appendChild(this.createSpaceElement());
  68. profileElement.appendChild(this.createVerifiedBadge(profileElement));
  69. }
  70. findAndModifyProfiles() {
  71. let profileNameElements = document.querySelectorAll(this.profileSelectors.join(', '));
  72. profileNameElements.forEach(profileElement => this.appendBadgeToProfile(profileElement));
  73. }
  74. }
  75. class ProfileBadgeManager {
  76. constructor() {
  77. this.checkmark = new Checkmark([
  78. '.profile-name',
  79. '.age-bracket-label-username',
  80. '.user-name-container',
  81. '.user.PrimaryName',
  82. '.MuiGrid-root .MuiGrid-item .css-1g4gkv0-Grid-root-userName' // Roblox Studio item
  83. ]);
  84. }
  85. init() {
  86. setTimeout(() => this.checkmark.findAndModifyProfiles(), 2300);
  87. }
  88. }
  89. (function() {
  90. 'use strict';
  91. let profileBadgeManager = new ProfileBadgeManager();
  92. profileBadgeManager.init();
  93. })();
  94. // Created with love by Korsinemi 🦊💜