Skip to content

Commit 01bfe5d

Browse files
committed
verified badge update
1 parent 89c44b5 commit 01bfe5d

28 files changed

Lines changed: 54 additions & 34 deletions

File tree

.DS_Store

10 KB
Binary file not shown.

extensions/dev.efaz.bundled_extension/chromeExtension/dev.efaz.verified_badge_add_on/fake_verified_loader.js

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ function applyChangesToHTML(json, user_checkmark_color) {
5555
/* All of these HTML variables are extracted from the Roblox Website and modified to be functioned like the actual badge. */
5656
let profile_html = `<span evba="true" evba_type="profile_html" role="button" tabindex="0" data-rblx-verified-badge-icon="" data-rblx-badge-icon="true" class="jss16"><img class="profile-verified-badge-icon" src="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" title="${json["id"]}" alt="${json["id"]}"></span>`;
5757
let profile2_html = `<span evba="true" evba_type="profile2_html" role="button" tabindex="0" data-rblx-verified-badge-icon="" data-rblx-badge-icon="true" class="jss4"><img class="profile-verified-badge-icon" src="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" title="${json["id"]}" alt="${json["id"]}"></span>`;
58+
let profile3_html = `<span evba="true" evba_type="profile3_html" data-rblx-verified-badge-icon="" data-rblx-badge-icon="true" class="items-center gap-xxsmall flex shrink-0"><span class="relative flex items-center justify-center"><span role="presentation" class="grow-0 shrink-0 basis-auto icon icon-filled-verified-backplate size-[var(--icon-size-large)] content-system-emphasis" style="color: #0066FF"></span><span role="presentation" class="grow-0 shrink-0 basis-auto icon icon-filled-verified-check size-[var(--icon-size-large)] absolute" style="color: white;"></span></span></span>`
5859
let name_html = `<img evba="true" evba_type="name_html" class="verified-badge-icon-catalog-item-rendered" src="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" title="Verified Badge Icon" alt="Verified Badge Icon">`;
5960
let name_side_html = `<img evba="true" evba_type="name_side_html" src="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" title="Verified Badge Icon" alt="Verified Badge Icon" style="margin-left: 2px;width: 12px;height: 12px; background: none !important;">`;
6061
let name_side_real_html = `<img evba="true" evba_type="name_side_real_html" src="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" title="Verified Badge Icon" alt="Verified Badge Icon" style="margin-left: 2px;width: 18px;height: 18px; background: none !important;">`;
@@ -82,6 +83,7 @@ function applyChangesToHTML(json, user_checkmark_color) {
8283
}
8384
profile_html = profile_html.replaceAll("%230066FF", hex_color);
8485
profile2_html = profile2_html.replaceAll("%230066FF", hex_color);
86+
profile3_html = profile3_html.replaceAll("#0066FF", hex_color.replace("%23", "#"));
8587
name_html = name_html.replaceAll("%230066FF", hex_color);
8688
name_side_real_html = name_side_real_html.replaceAll("%230066FF", hex_color);
8789
name_side_html = name_side_html.replaceAll("%230066FF", hex_color);
@@ -95,7 +97,7 @@ function applyChangesToHTML(json, user_checkmark_color) {
9597
return [
9698
hex_color, profile_html, profile2_html, name_html, name_side_real_html, name_side_html, game_html,
9799
name_small_html, group_name_verified_html, group_owner_name_html, reseller_html,
98-
efaz_approved_prompt_html, prompt_html, user_approved_prompt_html, friends_scroll_html
100+
efaz_approved_prompt_html, prompt_html, user_approved_prompt_html, friends_scroll_html, profile3_html
99101
];
100102
}
101103
function vIconPlaced(element, inner, select_existing) {
@@ -326,6 +328,7 @@ async function start() {
326328
let hex_color = fhe[0];
327329
let profile_html = fhe[1];
328330
let profile2_html = fhe[2];
331+
let profile3_html = fhe[15];
329332
let name_html = fhe[3];
330333
let name_side_real_html = fhe[4];
331334
let name_side_html = fhe[5];
@@ -357,6 +360,7 @@ async function start() {
357360
"hex_color": hex_color,
358361
"profile_html": profile_html,
359362
"profile2_html": profile2_html,
363+
"profile3_html": profile3_html,
360364
"name_html": name_html,
361365
"name_side_real_html": name_side_real_html,
362366
"name_side_html": name_side_html,
@@ -529,32 +533,33 @@ async function start() {
529533
if (open_user_data) {
530534
let profile_html = open_user_data["profile_html"];
531535
let profile2_html = open_user_data["profile2_html"];
536+
let profile3_html = open_user_data["profile3_html"];
532537
if (usr_con.matches(".profile-name.text-overflow")) {
533538
if (usr_con.offsetParent && usr_con.offsetParent.getAttribute("class") == "header-title") {
534539
if (vIconPlaced(usr_con.offsetParent, true)) { return; }
535540
if (usr_con.offsetParent.innerHTML.includes(open_user_data["display_name"])) {
536-
usr_con.offsetParent.appendChild(generateDOMElement(profile_html));
541+
usr_con.offsetParent.appendChild(generateDOMElement(profile3_html));
537542
}
538543
} else if (usr_con.parentElement && usr_con.parentElement.getAttribute("class") == "header-title") {
539544
if (vIconPlaced(usr_con.parentElement, true)) { return; }
540545
if (usr_con.parentElement.innerHTML.includes(open_user_data["display_name"])) {
541-
usr_con.parentElement.appendChild(generateDOMElement(profile_html));
546+
usr_con.parentElement.appendChild(generateDOMElement(profile3_html));
542547
}
543548
} else if (usr_con.parentElement && usr_con.parentElement.parentElement && usr_con.parentElement.parentElement.getAttribute("class") == "header-title") {
544549
if (vIconPlaced(usr_con.parentElement.parentElement, true)) { return; }
545550
if (usr_con.parentElement.parentElement.innerHTML.includes(open_user_data["display_name"])) {
546-
usr_con.parentElement.parentElement.appendChild(generateDOMElement(profile_html));
551+
usr_con.parentElement.parentElement.appendChild(generateDOMElement(profile3_html));
547552
}
548553
}
549554
} else if (usr_con.matches(".profile-header-title-container") || usr_con.matches("#profile-header-title-container-name")) {
550555
if (vIconPlaced(usr_con, true)) { return; }
551-
let s = generateDOMElement(profile2_html);
552-
s.children[0].style = "margin-left: 6px;";
553-
usr_con.appendChild(s);
556+
let s = generateDOMElement(profile3_html);
557+
if (!usr_con.parentElement || vIconPlaced(usr_con.parentElement, true)) { return; }
558+
usr_con.parentElement.appendChild(s);
554559
} else if (usr_con.matches(".profile-content > .info > .names > h1")) {
555560
if (vIconPlaced(usr_con, true)) { return; }
556561
if (usr_con.innerHTML.includes(open_user_data["display_name"])) {
557-
let s = generateDOMElement(profile2_html.replace("28", "18").replace("28", "18"));
562+
let s = generateDOMElement(profile3_html.replace("28", "18").replace("28", "18"));
558563
s.children[0].style = "height: 18px; width: 18px; margin-left: 4px;";
559564
usr_con.appendChild(s);
560565
}

0 commit comments

Comments
 (0)