• Resolved theloadeddog

    (@theloadeddog)


    Hi TTF,

    It looks like the Make theme is spamming my HTML files. I find the following towards the end of each HTML file:

    <script type='text/javascript'>
    /* <![CDATA[ */
    var ttfmakeGlobal = {"fitvids":{"selectors":"iframe[src*='www.viddler.com'],iframe[src*='money.cnn.com'],iframe[src*='www.educreations.com'],iframe[src*='\/\/blip.tv'],iframe[src*='\/\/embed.ted.com'],iframe[src*='\/\/www.hulu.com']"}};
    /* ]]> */
    </script>
    <script type='text/javascript' src='https://mydomain.com/wp-content/themes/make/js/global.min.js?ver=1.6.7'></script>
    <script type='text/javascript' src='https://mydomain.com/wp-content/themes/make/inc/formatting/dynamic-stylesheet/dynamic-stylesheet.js?ver=1.6.7'></script>

    Why is Make generating code that looks like it’s trying to embed off-site videos on my site without my knowledge or permission? While I don’t see anything on the actual site, that fact doesn’t make me any more comfortable with what I see in the HTML files. At first I thought maybe my site’d been hacked but comments in Make’s global.js file suggest otherwise, with blip.tv specifically mentioned in the fitVidsInit function (and that file was from a freshly downloaded zip of Make, entirely independent of my site).

    How do I get rid of this unwanted & unauthorised spam on my site?

    Thanks,
    tld

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @theloadeddog

    The code you’re seeing isn’t spam. It is an array of URL patterns that the Fitvids.js script uses to recognize embedded video containers so that it can scale them correctly to fit the content column, should you embed any of them. You can read more about Fitvids and the way its custom selectors work here.

    If you don’t need those patterns and don’t want them in your page source, you can add a filter to the make_fitvids_custom_selectors hook (source) and have it return an empty array.

    Thread Starter theloadeddog

    (@theloadeddog)

    Hi Corey,

    Thanks for your reply and for the explanation — much appreciated; that makes sense now. Thanks also for the info on how to remove the fitvids custom selectors — got it.

    Cheers,
    tld

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Make theme spamming HTML files?’ is closed to new replies.