Skip to content

Instantly share code, notes, and snippets.

@ThomasThoren

ThomasThoren/_README.md

Last active Mar 9, 2019
Embed
What would you like to do?
Web browsers

Web browsers

Force downloads to open in the same tab

This makes it easier to copy the cURL request.

Source: http://stackoverflow.com/a/16344250/2574244

[].forEach.call(document.querySelectorAll('a'),
    function(link){
        if(link.attributes.target) {
            link.attributes.target.value = '_self';
        }
    });

window.open = function(url) {
    location.href = url;
};

Disable security precautions in Chrome

"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
    --disable-web-security \
    --allow-file-access-from-files \
    --allow-file-access \
    --user-data-dir "/Users/$USER/Library/Application Support/Google/Chrome/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.