Skip to content

Instantly share code, notes, and snippets.

@wlib
Last active November 27, 2017 00:06
Show Gist options
  • Save wlib/61ad54cd1b4cee050b218229ba93a2d2 to your computer and use it in GitHub Desktop.
Save wlib/61ad54cd1b4cee050b218229ba93a2d2 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Close Me</title>
</head>
<body>
<script>
const symbols = location.search.slice(1).split(",");
symbols.forEach(symbol => {
const w = open(`https://s.tradingview.com/widgetembed/?symbol=${symbol}&interval=60&hidesidetoolbar=0&symboledit=1&saveimage=1&toolbarbg=f1f3f6&theme=Light&style=1&timezone=America%2FNew_York&locale=en`);
w.document.title = symbol;
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment