We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 229239e commit 7be5b72Copy full SHA for 7be5b72
public/embeds/js/script.js
@@ -0,0 +1,12 @@
1
+<script>
2
+ const baseUrl = "https://gpx.studio";
3
+
4
+ document.querySelectorAll('[href], [src], [action]').forEach(el => {
5
+ ['href', 'src', 'action'].forEach(attr => {
6
+ const val = el.getAttribute(attr);
7
+ if (val && val.startsWith('/')) {
8
+ el.setAttribute(attr, baseUrl + val);
9
+ }
10
+ });
11
12
+</script>
0 commit comments