mirror of
https://github.com/Snigdha-OS/Snigdha-OS.github.io.git
synced 2025-09-07 05:05:18 +02:00
🔬 test(spa): temporary removes spa
This commit is contained in:
27
index.html
27
index.html
@@ -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>
|
||||
|
||||
|
Reference in New Issue
Block a user