🔬 test(spa): temporary removes spa

This commit is contained in:
eshanized
2024-12-25 10:52:18 +05:30
parent 95405bb061
commit 9f15a800fa
2 changed files with 65 additions and 46 deletions

View File

@@ -49,33 +49,6 @@
<!-- Title -->
<title>Snigdha OS - Advanced Penetration Testing Distribution</title>
<!-- Single Page Apps for GitHub Pages (SPA) Script -->
<script type="text/javascript">
(function(l) {
if (l.search && l.search.startsWith('/')) {
// Extract the search string and remove the leading slash
const originalQuery = l.search.slice(1);
// Split by '&' and process each part
const decodedParts = originalQuery
.split('&')
.filter(Boolean) // Remove empty parts
.map(part => part.replace(/~and~/g, '&')); // Replace "~and~" with "&"
// Join the parts back into a valid query string
const decodedQuery = decodedParts.join('&');
// Avoid applying the replacement if the query string is unchanged
const newUrl = `${l.pathname.slice(0, -1)}${decodedQuery ? `?${decodedQuery}` : ''}${l.hash}`;
if (newUrl !== l.href) {
window.history.replaceState(null, '', newUrl);
}
}
})(window.location);
</script>
</head>