Skip to content

Commit

Permalink
Drop CHECK_ALL_SUBSCRIPTIONS (MBS-3629 is fixed)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesus2099 committed Sep 19, 2023
1 parent d68b656 commit 23c4494
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 27 deletions.
30 changes: 23 additions & 7 deletions mb_SUPER-MIND-CONTROL-II-X-TURBO.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mb. SUPER MIND CONTROL Ⅱ X TURBO
mb. SUPER MIND CONTROL Ⅱ X TURBO
================================

Some [musicbrainz.org](https://musicbrainz.org) power‐ups (beta too).
Expand All @@ -9,6 +9,7 @@ Some [musicbrainz.org](https://musicbrainz.org) power‐ups (beta too).
- [Change logs]
- [Known issues](https://github.com/jesus2099/konami-command/labels/mb_SUPER-MIND-CONTROL-II-X-TURBO)


Requirements
------------

Expand All @@ -24,6 +25,7 @@ In which you need one of these add-ons/extensions, to install and run:
- [Tampermonkey]
- [Violentmonkey] (**my choice**)


Content
-------

Expand All @@ -40,7 +42,6 @@ Content
1. [SERVER_SWITCH](#server_switch) ← <del>[ngs/test/classic musicbrainz switcher][USO-103422]</del>
1. [TAG_TOOLS](#tag_tools)
1. [USER_STATS](#user_stats)
1. [CHECK_ALL_SUBSCRIPTIONS](#check_all_subscriptions) ← <del>[check all subscriptions][USO-122083]</del>
1. [EASY_DATE](#easy_date)[Kejo feature request][USO-193018], very basic [paste‐a‐date!][USO-121217]‐like ([MBS-1197])
1. [ROW_HIGHLIGHTER](#row_highlighter)
1. [STATIC_MENU](#static_menu) ← <del>STATIC MENU</del>
Expand Down Expand Up @@ -69,21 +70,25 @@ This is now world acclaimed ground breaking features

---


### RELEASE_CLONER

Clone (copy/paste) release(s): open Musicbrainz **Editing** menu to find this
**duplication tool** (there’s also a huge workaround to [MBS-6549] that I must
remember to remove when this ticket is fixed).


### RADIO_DOUBLE_CLICK_SUBMIT

Submit forms when double clicking any of its radio buttons ([MBS-3229]).
This leaves vote buttons out to [POWER VOTE][USO-57765] script.


### CONTROL_ENTER_SUBMIT

Submits forms when you hit CTRL+ENTER in a text area.


### TRACKLIST_TOOLS

* **Search replace** text in tracklists.
Expand All @@ -92,6 +97,7 @@ Submits forms when you hit CTRL+ENTER in a text area.
* (Mass) **remove recording relationships** and **Set selected works date**
in relationship editor.


### LAST_SEEN_EDIT

(default off)
Expand All @@ -100,23 +106,27 @@ it shows you what edits you have already seen (reviewed) on entities
edit histories, yeah man. only save states when looking at all edits
(not only open) of entity.


### COOL_SEARCH_LINKS

Additional search links (switch between open and all edits,
**Refine this search** link excluding PUID edits, your own edits,
you didn’t vote on, etc.)


### COPY_TOC

Adds a [re‐lookup](https://musicbrainz.org/cdtoc/attach?toc=1%202%2047265%20150%2024107)
link next to the CD TOC on a [Disc ID](https://musicbrainz.org/cdtoc/1ddfodmV5lPnb2yMX4U.162ubz0-)’s
page, so you can copy the Disc ID to another edition release.


### SERVER_SWITCH

You can switch between various MusicBrainz servers (you can edit the list
of servers for mbsandbox.org).


### TAG_TOOLS

![three situations WOW][l0zO9nk]
Expand All @@ -127,17 +137,13 @@ tags and vice versa with only the magic of one click.
On all pages (sidebar): Your own tags stand out and all of them are displayed
(not only your first 5 tags).


### USER_STATS

[![Freso stats][KvC7dX6]](https://musicbrainz.org/user/Freso)

Adds more stats and vote search links to user pages.

### CHECK_ALL_SUBSCRIPTIONS

![WOW][kGiMP]

Adds a “check all” checkbox to subscriptions pages ([MBS-3629]).

### EASY_DATE

Expand All @@ -147,15 +153,18 @@ Paste full dates (YYYY-MM-DD or D.M.YYYY) in that new YYY+ field and it will fil

Press “c” key to copy current date into the other (begin→end or end→begin).


### ROW_HIGHLIGHTER

Evolution of brianfreud’s [MusicBrainz row highlighter][USO-118008].
Now also works in details lists and dynamically added content.


### STATIC_MENU

Makes the main MB menu always visible (and can be clicked to scroll to top).


### SLOW_DOWN_RETRY

(default off)
Expand All @@ -166,32 +175,39 @@ Useful when opening many background tabs for later editing.
There is now a frequent `read timeout` search error.
This module will retry those as well (and obviously faster than above case).


### CENTER_FLAGS

Vertically center flags (which are otherwise slightly mis‐centered).


### RATINGS_ON_TOP

(default off)

Show (5 stars) ratings at the top of the sidebar (below the image per default).


### SPOT_AC, SPOT_CAA and WARN_NEW_WINDOW

Various user CSS (cf. settings for description).


### HIDE_RATINGS

(default off)

Hide those cute little stars and everything related to ratings in MB.


### UNLINK_ENTITY_HEADER

(default off)

Remove links from page headers (for easier mouse select and copy).

---


Prestigious awards and international praise
-------------------------------------------
Expand Down
22 changes: 2 additions & 20 deletions mb_SUPER-MIND-CONTROL-II-X-TURBO.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name mb. SUPER MIND CONTROL Ⅱ X TURBO
// @version 2023.9.9
// @description musicbrainz.org power-ups: RELEASE_CLONER. copy/paste releases / DOUBLE_CLICK_SUBMIT / CONTROL_ENTER_SUBMIT / TRACKLIST_TOOLS. search→replace, track length parser, remove recording relationships, set selected works date / LAST_SEEN_EDIT. handy for subscribed entities / COOL_SEARCH_LINKS / COPY_TOC / ROW_HIGHLIGHTER / SPOT_CAA / SPOT_AC / RECORDING_LENGTH_COLUMN / RELEASE_EVENT_COLUMN / WARN_NEW_WINDOW / SERVER_SWITCH / TAG_TOOLS / USER_STATS / CHECK_ALL_SUBSCRIPTIONS / EASY_DATE. paste full dates in one go / STATIC_MENU / SLOW_DOWN_RETRY / CENTER_FLAGS / RATINGS_ON_TOP / HIDE_RATINGS / UNLINK_ENTITY_HEADER / MARK_PENDING_EDIT_MEDIUMS
// @version 2023.9.19
// @description musicbrainz.org power-ups: RELEASE_CLONER. copy/paste releases / DOUBLE_CLICK_SUBMIT / CONTROL_ENTER_SUBMIT / TRACKLIST_TOOLS. search→replace, track length parser, remove recording relationships, set selected works date / LAST_SEEN_EDIT. handy for subscribed entities / COOL_SEARCH_LINKS / COPY_TOC / ROW_HIGHLIGHTER / SPOT_CAA / SPOT_AC / RECORDING_LENGTH_COLUMN / RELEASE_EVENT_COLUMN / WARN_NEW_WINDOW / SERVER_SWITCH / TAG_TOOLS / USER_STATS / EASY_DATE. paste full dates in one go / STATIC_MENU / SLOW_DOWN_RETRY / CENTER_FLAGS / RATINGS_ON_TOP / HIDE_RATINGS / UNLINK_ENTITY_HEADER / MARK_PENDING_EDIT_MEDIUMS
// @namespace https://github.com/jesus2099/konami-command
// @homepage https://github.com/jesus2099/konami-command/blob/master/mb_SUPER-MIND-CONTROL-II-X-TURBO.md
// @supportURL https://github.com/jesus2099/konami-command/labels/mb_SUPER-MIND-CONTROL-II-X-TURBO
Expand Down Expand Up @@ -499,24 +499,6 @@ function writeStat(statsCell, stat, total) {
function percentage(p, c) {
return (c == 0 ? 0 : Math.round(10000 * p / c / 100)) + "%";
}
// =================================================================== MOUSE+
// ## CHECK_ALL_SUBSCRIPTIONS ##
// ==========================================================================
j2setting("CHECK_ALL_SUBSCRIPTIONS", true, true, "adds a “check all” checkbox on subscriptions pages (MBS-3629)");
if (j2sets.CHECK_ALL_SUBSCRIPTIONS && self.location.href.match(new RegExp("^" + MBS + "/user/[^/]+/subscriptions/.+$"))) {
var cbs = document.querySelectorAll("div#page > form > table.tbl > tbody > tr > td > input[type='checkbox']");
var ths = document.querySelector("div#page > form > table.tbl > thead > tr > th");
if (ths && !ths.hasChildNodes() && cbs && cbs.length > 0) {
debug("CHECK_ALL_SUBSCRIPTIONS");
ths.appendChild(createTag("input", {a: {type: "checkbox"}, e: {click: function(event) {
for (let icb = 0; icb < cbs.length; icb++) {
if (cbs[icb].checked != this.checked) {
cbs[icb].click();
}
}
}}}));
}
}
// =============================================================== KEYBOARD+
// ## EASY_DATE ## basic paste-a-date!-like (https://web.archive.org/web/20131112023543/userscripts.org/scripts/show/121217)
// =========================================================================
Expand Down

0 comments on commit 23c4494

Please sign in to comment.