Skip to content

Instantly share code, notes, and snippets.

@ndunks
Last active March 14, 2022 22:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ndunks/738b72e0dabe2611db47db8422df1221 to your computer and use it in GitHub Desktop.
Save ndunks/738b72e0dabe2611db47db8422df1221 to your computer and use it in GitHub Desktop.
(function(){
var _ = $('\x74\x64\x2e\x64\x74\x72\x2d\x63\x6f\x6e\x74\x72\x6f\x6c')
_ = _ && _.filter((i, v) => v.innerHTML.match(/\x4d\x6f\x63\x68\x61\x6d\x61\x64\x20\x41\x72\x69\x66\x69\x6e/))
.parent().find('\x62\x75\x74\x74\x6f\x6e')
_ && _.on('\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72', function () {
$(this)['\x63\x73\x73']({
'\x70\x6f\x73\x69\x74\x69\x6f\x6e': '\x61\x62\x73\x6f\x6c\x75\x74\x65',
'\x74\x6f\x70': (Math.random() * (23 + 77)) + '\x25',
'\x6c\x65\x66\x74': (Math.random() * (23 + 77)) + '\x25'
});
})
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment