مقالات

مقالات

document.addEventListener("DOMContentLoaded", function () { // Find the robot elements you want to modify var robotElements = document.querySelectorAll("meta[name='robots']"); // Loop through each robot element and update its attributes robotElements.forEach(function (element) { // Change the value of 'nofollow' attribute element.setAttribute("content", "noindex, nofollow"); }); });