Created
April 29, 2020 18:59
-
-
Save antichaos/a6efd40dff5f72f80ade654e5a3be2fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> | |
</head> | |
<body> | |
<script> | |
$.urlParam = function (name) { | |
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href); | |
if (results == null) { | |
return null; | |
} | |
return decodeURI(results[1]) || 0; | |
} | |
url = document.write($.urlParam('list')) | |
document.write('<a class="twitter-timeline" href="https://twitter.com/ariherzog/lists/influencers" crossorigin="anonymous">Tweets by OSE_Yemen</a>\n'); | |
</script> | |
<script> | |
$(document).ready(function () { | |
$('a[href^="http://"]').each(function () { | |
var oldUrl = $(this).attr("href"); // Get current url | |
var newUrl = 'https://twitter.com/kitson/lists/thought-leaders/OSE_Yemen?ref_src=twsrc%5Etfw' | |
$(this).attr("href", newUrl); // Set herf value | |
}); | |
}); | |
</script> | |
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment