Spaces:
Running
Running
deepsite badge
Browse files- public/deepsite-badge.js +7 -0
public/deepsite-badge.js
CHANGED
|
@@ -6,6 +6,13 @@
|
|
| 6 |
return;
|
| 7 |
}
|
| 8 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
// Inject keyframes for gradient rotation
|
| 10 |
const style = document.createElement('style');
|
| 11 |
style.textContent = `
|
|
|
|
| 6 |
return;
|
| 7 |
}
|
| 8 |
|
| 9 |
+
// Don't show badge on huggingface.co/deepsite
|
| 10 |
+
const hostname = window.location.hostname;
|
| 11 |
+
const pathname = window.location.pathname;
|
| 12 |
+
if (hostname === 'huggingface.co' && pathname.startsWith('/deepsite')) {
|
| 13 |
+
return;
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
// Inject keyframes for gradient rotation
|
| 17 |
const style = document.createElement('style');
|
| 18 |
style.textContent = `
|