Add `:cookies' command to (dynamically) adjust soup.accept_policy - dotfiles - leot's dotfiles
 (HTM) hg clone https://bitbucket.org/iamleot/dotfiles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset cce8fb722ee3b27432d0660825c46fbfda8501ec
 (DIR) parent 88c1e06c10508ccd17aebe2ee98c020ad1bc03c7
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Wed,  3 Oct 2018 00:30:52 
       
       Add `:cookies' command to (dynamically) adjust soup.accept_policy
       
       Diffstat:
        config/luakit/userconf.lua |  12 ++++++++++++
        1 files changed, 12 insertions(+), 0 deletions(-)
       ---
       diff -r 88c1e06c1050 -r cce8fb722ee3 config/luakit/userconf.lua
       --- a/config/luakit/userconf.lua        Tue Oct 02 23:43:44 2018 +0200
       +++ b/config/luakit/userconf.lua        Wed Oct 03 00:30:52 2018 +0200
       @@ -56,3 +56,15 @@
                end
            end },
        })
       +
       +modes.add_cmds({
       +    { ":cookies", "Set the cookies accept policy", function (w, o)
       +        if o.arg == "never" then
       +            soup.accept_policy = "never"
       +        elseif o.arg == "no_third_party" then
       +            soup.accept_policy = "no_third_party"
       +        elseif o.arg == "always" then
       +            soup.accept_policy = "always"
       +        end
       +    end },
       +})