Page 1 of 1

Feature Request: Cookie Blocking / Cookies Control

Posted: Thu Oct 21, 2021 2:01 pm
by Mad_Man_Moon
I've noticed that blocking / default rules do not prevent some sites setting cookies, and I was thinking that I would be completely at home with every domain that I have noscript set to 'do stuff' with, to also manage whether or it can set cookies.

I realise that this isn't a completely and wholly formed suggestion, but there's the bare bones. I mean, I'm not going to have the answers for "why this" or "why not that" ... but I figure if it's even a remotely doable thing, then maybe it'll just whirr some cogs that might do something else with it.

Anyway, my suggestion is to have an 'On/Off' switch for noscript cookie management in the advanced options:
Image
Which will disable it in domain options:
Image

If that option is off (as above) then noscript will do nothing different than it normally does in this area.

If it is enabled, though, like so:
Third Image: SEE FOLLOW UP POST BECAUSE OF FORUM SPAM PROTECTION
... then this will enable the user to choose if domains can set cookies,

The basic functionality then being that if the cookies checkbox is checked, then the domain can set cookies:
Fourth Image: SEE FOLLOW UP POST BECAUSE OF FORUM SPAM PROTECTION
... if it is unchecked, then it cannot set cookies:
Fifth Image: SEE FOLLOW UP POST BECAUSE OF FORUM SPAM PROTECTION
_____________
Full Gallery (with ZIP DL) Available Here

Re: Feature Request: Cookie Blocking / Cookies Control

Posted: Thu Oct 21, 2021 2:04 pm
by Mad_Man_Moon
Third image:
Image

Fourth image:
Image

Final image:
Image

Here's the CSS I made those mocks with:

Code: Select all

    .eliot {
      margin-top: 0px;
      margin-left: 0.8em;
    }
    
    .opt-detail {
      --flexiSpan: row nowrap;
      --subDisp: none;
      display: flex;
      /* flex-flow: row nowrap; */
      flex-flow: var(--flexiSpan);
    }
    
    .opt-adv-wrap {
      display: var(--subDisp);
      flex-flow: row nowrap;
      margin-left: 0.8em;
    }
    
    .opt-group input[class='eliot']:checked ~ div.opt-detail {
      /* This makes the option buttons appear and changes the detail holder to a column layout */
      --flexiSpan: column nowrap;
      --subDisp: flex;
    }
	
	input:disabled+label {
      color: #ccc;
	}
Here's how I slightly altered the HTML for the mock advanced tab (had to move the label into the div - that replaces the span - to enable the CSS variables to work properly):

Code: Select all

  <div id="cookies-options" class="opt-group">
    <input type="checkbox" id="opt-cookies" class="eliot">
    <div id="cookies-opt-det" class="opt-detail">
      <label for="opt-amnesticUpdates" id="lbl-opt-amnesticUpdates">If checked the 'cookies' check box for a domain will (when checked) allow the domain to set cookies</label>
      <div class="opt-adv-wrap">
        <div id="cookies-opt-adv-1" class="opt-adv-box">
          <input type="checkbox" id="opt-cookies-adv-check-1" class="opt-adv-inp">
          <label for="opt-cookies-adv-check-1" class="opt-adv-inp-lab">Option 1</label>
        </div>
        <div id="cookies-opt-adv-2" class="opt-adv-box">
          <input type="checkbox" id="opt-cookies-adv-check-2" class="opt-adv-inp">
          <label for="opt-cookies-adv-check-2" class="opt-adv-inp-lab">Option 2</label>
        </div>
        <div id="cookies-opt-adv-3" class="opt-adv-box">
          <input type="checkbox" id="opt-cookies-adv-check-3" class="opt-adv-inp">
          <label for="opt-cookies-adv-check-3" class="opt-adv-inp-lab">Option 3</label>
        </div>
        <div id="cookies-opt-adv-4" class="opt-adv-box">
          <input type="checkbox" id="opt-cookies-adv-check-4" class="opt-adv-inp">
          <label for="opt-cookies-adv-check-4" class="opt-adv-inp-lab">Option 4</label>
        </div>
        <div id="cookies-opt-adv-5" class="opt-adv-box">
          <input type="checkbox" id="opt-cookies-adv-check-5" class="opt-adv-inp">
          <label for="opt-cookies-adv-check-5" class="opt-adv-inp-lab">Option 5</label>
        </div>
      </div>
    </div>
  </div>

Re: Feature Request: Cookie Blocking / Cookies Control

Posted: Thu Oct 21, 2021 4:00 pm
by barbaz
NoScript is a security tool, not a privacy tool. There is no security advantage to blocking cookies solely by which site is setting them.

In case you're thinking this because NoScript Classic had a feature dealing with cookies, that control was only what's described in FAQ 6.4.

Re: Feature Request: Cookie Blocking / Cookies Control

Posted: Thu Nov 11, 2021 5:31 pm
by Mad_Man_Moon
Cheers, @barbaz.

Aye, I wasn't thinking of changing the meaning of life or anything, I just thought it'd be a cool extra to have for those that wanted it. :-)