Skip to content

Instantly share code, notes, and snippets.

@elzii
Last active January 1, 2024 18:20
Show Gist options
  • Save elzii/39b04e2aca42ee8d7f4f2146226aba6a to your computer and use it in GitHub Desktop.
Save elzii/39b04e2aca42ee8d7f4f2146226aba6a to your computer and use it in GitHub Desktop.
visual-events
# Visual Events
### INSTRUCTIONS
<a alt="🔶" href=`javascript:(function() {var url = 'https://gist.githubusercontent.com/elzii/39b04e2aca42ee8d7f4f2146226aba6a/raw/78ac6910baaf2c50c00efeaca88264d2d58c0498/visual-event-loader.js';if( typeof VisualEvent!='undefined' ) {if ( VisualEvent.instance !== null ) {VisualEvent.close();}else {new VisualEvent();}}else {var n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src',url+'?rand=%27+new%20Date().getTime());document.body.appendChild(n);}})();'`> 🔶 </a>
javascript:(function() {var url = 'https://gist.githubusercontent.com/elzii/2dbb4232a6cbf0ab7d3ba8848846515b/raw/73df2b6e061d8ece551b89896f78b9bbc6caa5e7/vel.js';if( typeof VisualEvent!='undefined' ) {if ( VisualEvent.instance !== null ) {VisualEvent.close();}else {new VisualEvent();}}else {var n=document.createElement('script');n.setAttribute('language','JavaScript');n.setAttribute('src',url+'?rand=%27+new%20Date().getTime());document.body.appendChild(n);}})();
;(function VE() {
var url = `https://gist.githubusercontent.com/elzii/2dbb4232a6cbf0ab7d3ba8848846515b/raw/73df2b6e061d8ece551b89896f78b9bbc6caa5e7/vel.js`;
if (typeof VisualEvent != 'undefined') {
if (VisualEvent.instance !== null) {
VisualEvent.close();
} else {
new VisualEvent();
}
} else {
var n = document.createElement('script');
n.setAttribute('language', `JavaScript`);
var params = new URLSearchParams()
params.set('rand', new Date().getTime())
params.toString()
n.setAttribute('src', `${url}?{params}`)
document.body.appendChild(n)
}
}())
/**
See here: https://gist.githubusercontent.com/elzii/2dbb4232a6cbf0ab7d3ba8848846515b/raw/73df2b6e061d8ece551b89896f78b9bbc6caa5e7/vel.js
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment