Blogger "I wish to continue"

因為Same Origin Policy,所以在cross-domain存取會產生"Permission denied to get property"問題,先轉址至iframe,再進行存取。

// ==UserScript==
// @name    Blogger "I wish to continue"
// @description    Blogger "I wish to continue"
// @author    NKid
// @version    2011-12-10
// @include    http://www.blogger.com/blogin.g?blogspotURL=*
// ==/UserScript==
if (document.querySelector('iframe'))
    location.assign(document.getElementById('injected-iframe').src);
else
    location.assign(document.querySelector('.kd-button-bar a:nth-child(1)').href);


Scripting Iframes - Tutorial and Examples
Why is this javascript getting permission denied? - Stack Overflow