Update index.html
Browse files- index.html +9 -2
index.html
CHANGED
|
@@ -17,7 +17,8 @@
|
|
| 17 |
<script>
|
| 18 |
const queryString = window.location.search;
|
| 19 |
const urlParams = new URLSearchParams(queryString);
|
| 20 |
-
const vid = urlParams.get("
|
|
|
|
| 21 |
|
| 22 |
//var str = window.location.href;
|
| 23 |
|
|
@@ -37,7 +38,13 @@
|
|
| 37 |
|
| 38 |
// set name and content attributes, fill values in
|
| 39 |
//eln.outerHTML = 'http-equiv="refresh"';
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
//elc.name = "twitter:player:stream";
|
| 42 |
//elc.content = vid;
|
| 43 |
|
|
|
|
| 17 |
<script>
|
| 18 |
const queryString = window.location.search;
|
| 19 |
const urlParams = new URLSearchParams(queryString);
|
| 20 |
+
const vid = urlParams.get("user");
|
| 21 |
+
const intent = urlParams.get("intent");
|
| 22 |
|
| 23 |
//var str = window.location.href;
|
| 24 |
|
|
|
|
| 38 |
|
| 39 |
// set name and content attributes, fill values in
|
| 40 |
//eln.outerHTML = 'http-equiv="refresh"';
|
| 41 |
+
if (intent === "dm"){
|
| 42 |
+
elv[0].content = "0; url=https://twitter.com/direct_messages/create/" + vid;
|
| 43 |
+
}
|
| 44 |
+
if (intent === "follow"){
|
| 45 |
+
|
| 46 |
+
elv[0].content = "0; url=https://twitter.com/intent/follow?screen_name=" + vid;
|
| 47 |
+
}
|
| 48 |
//elc.name = "twitter:player:stream";
|
| 49 |
//elc.content = vid;
|
| 50 |
|