youtube icon indicating copy to clipboard operation
youtube copied to clipboard

🐞"save" button

Open webmnovel opened this issue 1 year ago • 3 comments

Concise Description

the "save" button disappears unless it is under the "...". Can't I have it as a standalone (without being under "...")? Also, I cannot remove "report". I tried changing various options but to no avail. This is the rest of my button configuration, if that helps. Thank you

Image

Browser/s

Chrome

Other Browser:

No response

'Steps to reproduce' - Which of our features is required for the bug to happen?

if "hide ...." is selected, then the "save" button disappears too

Since when?

I don't know, a few months maybe?

Does the bug still happen when you log out of YouTube?

None

..No? Then please paste your yt.config_.EXPERIMENT_FLAGS. Twice (With the error & Without)

No response

Are any errors or related log-messages shown in the Browser-Console? (F12)

No response

Tested as the only active extension? (incognito mode or another browser users):

None

Expected preferred behavior:

have the "save" button not indented under "...", but as a regular button

ImprovedTube Version

4.1350

Your Settings (From the Extension's ⋮-Hamburger menu > Settings > Backup & reset > Export settings)

improvedtube.json

Your YouTube-Document

No response

OS / Device:

No response

webmnovel avatar Oct 05 '25 06:10 webmnovel

Hey @webmnovel I’d love to work on this issue and contribute to the repository in general. I’m also interested in taking part in future issues and being an active member of the community. Looking forward to contributing!

Lucky-Malik avatar Oct 05 '25 10:10 Lucky-Malik

// ==UserScript==
// @name        Youtube "..." button to "Save" button
// @namespace   Violentmonkey Scripts
// @include     /https:\/\/www\.youtube\.com\/.*/
// @grant       none
// @version     1.0
// @author      Luanciel
// @grant       GM_addStyle
// @description 10/8/2025, 2:48:35 AM
// ==/UserScript==
// This style can make it impossible to use "..." button in playlist view which spawns same dropdown,
// suggestion: either remove it completely or remove it when there's playlist visible
var css = `#contentWrapper > ytd-menu-popup-renderer[slot="dropdown-content"] {
  display: none !important;
}`;
window.onload = () => {
  setTimeout( () => {
    // Find the "..." button
    var ddd = document.querySelector('#button-shape > button > yt-touch-feedback-shape > div.yt-spec-touch-feedback-shape__fill');
    ddd.click(); // make the "save" button appear in the html
    // bind another event to it
    ddd.onclick = click_save_button;
  }, 2000); // 2 sec usually enough for whole site to load so that the "..." button can be found by qS
  GM_addStyle(css);
};
function click_save_button() {
  // Find the "Save" and click it.
  //document.querySelector('#items > ytd-menu-service-item-renderer.style-scope.ytd-menu-popup-renderer.iron-selected > tp-yt-paper-item').click();
  var save = null;
  var all = document.querySelectorAll('#items > ytd-menu-service-item-renderer > tp-yt-paper-item > yt-formatted-string');
  all.forEach((e) => {
    console.log(e.innerHTML);
    if (e.innerHTML === "Save") {
      save = e.parentElement;
    }
  });
  if (save) { save.click(); }
}

If you don't care about all other options in the "..." menu as I do, you can use this userscript to replace the "..." button's action with "Save" button's, kinda unsafe way, but works for now until they break it™

Luanciel avatar Oct 07 '25 23:10 Luanciel

So this appears to be a duplicate to the issues below but I think it's a big enough issue to not mark this duplicate yet. First issue was created 12/2024 so this has been an issue for a while. I'm assuming it isn't a simple fix or something. Would attempt to fix but I'm not a good coder. Haven't tried the userscript (yet) and while the workaround is appreciated, I don't think a separate script is the best solution for this.

https://github.com/code-charity/youtube/issues/2909 https://github.com/code-charity/youtube/issues/2727

Is anybody aware of why this issue is happening?

cygvis avatar Oct 24 '25 22:10 cygvis