Error de la escritura de usuario de Chrome: "Intento de JavaScript no seguro para acceder al marco"

// the iframe of the div I need to access
var iframe = document.getElementsByTagName("iframe")[2];
var innerDoc = iframe.contentDocument || iframe.contentWindow.document;

// resize 'player' in the iframe
innerDoc.getElementById('player').width = "1000px";
innerDoc.getElementById('player').height = "650px";

Ejecutando en un script de usuario para esta url:http://www.free-tv-video-online.me/player/sockshare.php?id=24DA6EAA2561FD60

¿Por qué sale Chrome con este error y falla la secuencia de comandos ?:

Unsafe JavaScript attempt to access frame with URL http://www.sockshare.com/embed/24DA6EAA2561FD60 
from frame with URL http://www.free-tv-video-online.me/player/sockshare.php?id=24DA6EAA2561FD60. 
Domains, protocols and ports must match.

(Solo soy un usuario básico de Javascript)

Código final, muchas gracias al contestador:

// ==UserScript==
// @name       Resize
// @include    http://www.free-tv-video-online.me/player/sockshare.php*
// @include    http://www.sockshare.com/*
// ==/UserScript==

if (!(window.top === window.self)) {
    var player = document.getElementById('player');
    setSize(player);
}

function setSize(player) {
    player.style.setProperty("width", "1000px");
    player.style.setProperty("height", "650px");
}

Respuestas a la pregunta(2)

Su respuesta a la pregunta