// ==UserScript==
// @name                Selfish Youtube
// @namespace           https://github.com/ASzc/selfish-youtube
// @description         On the watch page, prevent the share panel from being switched to after pressing Like
// @include             http://youtube.com/*
// @include             http://*.youtube.com/*
// @include             https://youtube.com/*
// @include             https://*.youtube.com/*
// ==/UserScript==

var oldPanelName = "action-panel-share";
var newPanelName = "action-panel-share-foo";

// Change share panel id so Google's JS can't reference it properly unless we give it the new name
var actionPanelShare = document.getElementById(oldPanelName);
actionPanelShare.id = newPanelName;

// Change target of Share UI button so it points at the new panel ID
var buttons = document.body.getElementsByTagName("button");
for (var i = 0; i < buttons.length; i++) {
    var button = buttons[i];
    var buttonDTF = button.getAttribute("data-trigger-for");

    if (buttonDTF != null && buttonDTF == oldPanelName) {
        button.setAttribute("data-trigger-for", newPanelName);
    }
}

@@ -162,15 +162,14 @@
 ge, 
-p
 re
+mo
 ve
-nt
  the
@@ -184,51 +184,9 @@
 anel
- from being switched to after pressing Like
+.
 %0A// 
@@ -396,53 +396,9 @@
 var 
-oldPanelName = %22action-panel-share%22;%0Avar newP
+p
 anel
@@ -427,114 +427,27 @@
 hare
--foo
 %22;%0A%0A// 
-Change share panel id so Google's JS can't reference it properly unless we give it the new name
+Remove panel
 %0Avar
@@ -490,20 +490,17 @@
 entById(
-oldP
+p
 anelName
@@ -523,96 +523,88 @@
 are.
-id = newPanelName;%0A%0A// Change target of Share UI button so it points at
+parentNode.removeChild(actionPanelShare);%0A%0A// Remove buttons targeting
  the 
-new 
 panel
- ID
 %0Avar
@@ -840,12 +840,9 @@
  == 
-oldP
+p
 anel
@@ -868,53 +868,37 @@
 ton.
-setAttribute(%22data-trigger-for%22, newPanelName
+parentNode.removeChild(button
 );%0A 

Change to simple removal of the share panel and button