Allow use of specific local javascript

I use pinboard for all bookmarked repositories and they provide a small javascript splash screen for easy adding and tagging that I have on the Firefox toolbar. Enhanced Code:

javascript: q = location.href;
if (document.getSelection) {
    d = document.getSelection();
} else {
    d = '';
};
p = document.title;
void(open('https://pinboard.in/add?showtags=yes&url=' + encodeURIComponent(q) + '&description=' + encodeURIComponent(d) + '&title=' + encodeURIComponent(p), 'Pinboard', 'toolbar=no,scrollbars=yes,width=750,height=700'));

which works amazingly for all http sites, but when I try to tag https sites, I get this in the console:

Content Security Policy: The page settings blocked the loading of a resource: An attempt to execute inline scripts has been blocked.

I'm not sure if SO is the right SE site for this, but I am wondering how I can let this particular script execute everywhere. If I copy javascript into the address field and run it manually, everything works as it should.

+4
source share

All Articles