Feature Request: Cookie Blocking / Cookies Control

Bug reports and enhancement requests
Post Reply
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Feature Request: Cookie Blocking / Cookies Control

Post 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
Last edited by Mad_Man_Moon on Thu Oct 21, 2021 2:05 pm, edited 1 time in total.
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Re: Feature Request: Cookie Blocking / Cookies Control

Post 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>
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
barbaz
Senior Member
Posts: 10841
Joined: Sat Aug 03, 2013 5:45 pm

Re: Feature Request: Cookie Blocking / Cookies Control

Post 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.
*Always* check the changelogs BEFORE updating that important software!
-
Mad_Man_Moon
Senior Member
Posts: 75
Joined: Fri Oct 27, 2017 12:02 pm

Re: Feature Request: Cookie Blocking / Cookies Control

Post 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. :-)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0
Post Reply