Skip to content

Instantly share code, notes, and snippets.

@Felipeplz
Felipeplz / twitter-poll-result-fixed.js
Last active December 11, 2018 20:59
Fix for 'twitter-poll-result.js' by vicke4
(
function() {
var pod = document.getElementById('permalink-overlay-dialog');
if (!pod) return alert('Not a valid poll');
var iframeList = pod.getElementsByTagName('iframe');
if (iframeList.length === 0) return alert('Not a valid poll');
for(var valid_iframe in iframeList){