MediaWiki:StrawpollIntegrator2.js

/** * Name:       StrawpollIntegrator * Author:     Fujimaru-kun * Description: Allows intergration with strawpoll.com polls */ mw.hook('wikipage.content').add(function($content) {   if (!$content) {        return;    }    $content.find('.strawpollcom').each(function { var $this = $(this), id = $this.attr('data-poll-id'), css = { width: 'inherit', height: 'inherit', border: 0 };       $this.html(            $(' ', { src: 'https://strawpoll.com/embed/' + id, css: css })       );    }); });