Skip to content

Instantly share code, notes, and snippets.

@mertonium
Last active December 22, 2016 21:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save mertonium/7105554 to your computer and use it in GitHub Desktop.
Save mertonium/7105554 to your computer and use it in GitHub Desktop.
The Featured Perspective javascript snippet.
<script data-electnext id="enxt-script" type="text/javascript">
//<![CDATA[
var _enxt = _enxt || [];
_enxt.push(['set_account', 'YOUR_API_KEY']);
_enxt.push(['set_article', 'YOUR_CMS_SPECIFIC_ARTICLE_ID']);
_enxt.push(['setup_featured_perspective']);
(function() {
var enxt = document.createElement('script'); enxt.type = 'text/javascript'; enxt.async = true;
enxt.src = '//versahq.com/api/v1/enxt.js'; var k = document.getElementById('enxt-script');
k.parentNode.insertBefore(enxt, k);
})();
//]]>
</script>
<noscript>Please enable JavaScript to view the <a href="https://versahq.com?utm_source=noscript&utm_medium=richardson_widget" target="_blank">featured perspectives by Versa.</a></noscript>
@johnlockie
Copy link

johnlockie commented Dec 22, 2016

John, I am curious what the next.js file is. I am researching some proxy traffic for my organization and we are seeing requests for "http://versahq.com/api/v1/enxt.js", but we are not sure what site is requesting this. The users did not manually request this traffic, so likely someone is referencing this URL somewhere. This seems to be the most likely place to request information as to what this is doing and why. We are attempting to identify source to determine / rule out whether it's malicious or not. Thanks for your help. --jl

Never mind, I found the referer. It was thehill.com. The versa page is 404 though.....FYI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment