' + jQuery(this).html() + '';
});
jQuery(document).ready(function() {
var thirdPartyLinks = jQuery('main a, header ul#primary-menu a, footer .menu-item a').not('.location-info a, .delivery-logos a');
// Loop through each link
thirdPartyLinks.each(function() {
var link = jQuery(this);
// Check if the link leads to a third-party website
if (isThirdParty(link.attr('href'))) {
// Add the target="_blank" attribute
link.attr('target', '_blank');
// Add the text indicating it will open in a new tab
var existingText = link.text().trim();
var newText = existingText + ', This Link will open in a new tab';
link.attr('aria-label', newText);
}
});
// Function to check if a link is from a third-party website
function isThirdParty(url) {
return !url.includes('thehalalguys.com');
}
});
jQuery(document).ready(function() {
// Facebook
jQuery('a.social-link[href*="facebook.com"]').attr('aria-label', 'Follow on Facebook, this link will open in a new tab');
// Twitter
jQuery('a.social-link[href*="twitter.com"]').attr('aria-label', 'Follow on Twitter, this link will open in a new tab');
// Instagram
jQuery('a.social-link[href*="instagram.com"]').attr('aria-label', 'Follow on Instagram, this link will open in a new tab');
// YouTube
jQuery('a.social-link[href*="youtube.com"]').attr('aria-label', 'Subscribe on YouTube, this link will open in a new tab');
// TikTok
jQuery('a.social-link[href*="tiktok.com"]').attr('aria-label', 'Follow on TikTok, this link will open in a new tab');
jQuery('table.GeneratedTable').attr('role','presentation');
jQuery('br').attr('aria-hidden','true');
jQuery('.page-id-58 .wrapper-text-header h2, .page-id-43 .wrapper-text-header h2').replaceWith('
' + jQuery('.wrapper-text-header h2').html() + '');
jQuery('a.order-link').attr('aria-label','order now, this link will open in a new tab.');
jQuery('.social-links.clear.icon-mode').removeClass('clear');
jQuery('.header-nav-btm.toggled.animate .page-row').removeClass('page-row').addClass('menu-row');
jQuery(".SumoSelect.sumo_input_5.large.gfield_select").removeAttr('tabindex');
jQuery('ul.alm-filter-nav a').removeAttr('aria-label');
jQuery('ul.alm-filter-nav a').attr('role','tab');
jQuery('li.grid-item.clear.has-img.no-link').removeAttr('tabindex');
jQuery('.alm-reveal').removeAttr('tabindex');
});
jQuery(document).ready(function() {
// Loop through each entry
jQuery('.content-container').each(function() {
// Find the title within the current content-container
var titleText = jQuery(this).find('.entry-title a').text();
// Find the link within the current content-container and update its aria-label
jQuery(this).find('.entry-footer a').attr('aria-label', 'Continue Reading about ' + titleText);
});
});
jQuery(document).ready(function () {
var existCondition = setInterval(function () {
if (jQuery('.press-container').length) {
clearInterval(existCondition);
runMyFunctionrmvtb();
}
}, 200);
function runMyFunctionrmvtb() {
jQuery('.press-container').each(function() {
// Find the title within the current content-container
var titleText = jQuery(this).find('h2.press-title>a').text();
// Find the link within the current content-container and update its aria-label
jQuery(this).find('a.read-article').attr('aria-label', 'Read Article about ' + titleText + ', This link will open in a new tab, and you will leave thehalalguys.com.');
});
}
});
jQuery(document).ready(function () {
var existCondition = setInterval(function () {
if (jQuery('h2.release-title a').length) {
clearInterval(existCondition);
runMyFunctionrmvtb2();
}
}, 200);
function runMyFunctionrmvtb2() {
jQuery('.press-release').each(function() {
// Find the title within the current content-container
var titleText = jQuery(this).find('h2.release-title a').text();
// Find the link within the current content-container and update its aria-label
jQuery(this).find('h2.release-title a').attr('aria-label', titleText + ', This pdf link will open in a new tab, and you will leave thehalalguys.com.');
});
}
});
jQuery(document).ready(function () {
var existCondition = setInterval(function () {
if (jQuery('.grid-info h4').length) {
clearInterval(existCondition);
runMyFunctionrmvtb4();
}
}, 200);
function runMyFunctionrmvtb4() {
jQuery('.grid-info h4').each(function() {
jQuery(this).replaceWith('