Tumblr privacy denier

Denies all data collection on tumblr automatically

This script is marked as "expired"
Expired scripts may still work but they will not be fixed once they break.
Click here to install Browse More Scripts
// ==UserScript==
// @name         Tumblr privacy denier
// @namespace    6ba748b4ef9b7d4a99e5d1f34d84bd18151f0872
// @version      0.1
// @description  Denies all data collection on tumblr automatically
// @author       /u/AyrA_ch
// @include      https://www.tumblr.com/privacy/consent?redirect=*
// @include      https://tumblr.com/privacy/consent?redirect=*
// @grant        none
// @expired      true
// ==/UserScript==

// HINT: To trigger this, delete all tumblr cookies.

(function ($, $$) {
	'use strict';
	//Do nothing alternative for missing elements
	var noop = {
		click: function () {}
	};
	//List of all IDs we processed
	var ids = [];
	//Click on the button that generates the list
	($("[data-toggle='display-cmt']") || noop).click();
	//Uncheck EVERYTHING
	$$("[checked]").forEach(function (v) {
		v.click();
		v.removeAttribute("checked");
		ids.push(v.id);
	});
	//Submit our opinion of this insane policy
	($("#partner-consent-submit") || noop).click();
	//Log to console just in case
	console.log("Denied access for", ids.length, "ids. List:", ids);
	//Continue to page we wanted to go initially
	($(".final-btn-consent .yes") || noop).click();
})(document.querySelector.bind(document), document.querySelectorAll.bind(document));

/*
LICENSE:
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
The full license text can be found here: http://creativecommons.org/licenses/by-nc-sa/4.0/
The link has an easy to understand version of the license and the full license text.

DISCLAIMER:
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
THE POSSIBILITY OF SUCH DAMAGE.
*/

Copyright © 2018 by Kevin Gut 📧 | More services | Generated for 3.133.108.47