document.addEventListener('DOMContentLoaded', function() {
const hashValue = window.location.hash;
const searchPrefix = '#q=';
if (hashValue.startsWith(searchPrefix)) {
const searchQuery = hashValue.substring(searchPrefix.length);
const unifiedSearchLink = document.getElementById('unifiedsearch');
if (unifiedSearchLink) {
unifiedSearchLink.href += `#q=${encodeURIComponent(searchQuery)}`;
}
}
});