MTS Sidebar Fix

Fixes my bad code while we wait for the webstores to publish the update.

  1. // ==UserScript==
  2. // @name MTS Sidebar Fix
  3. // @namespace https://gist.github.com/Kadauchi
  4. // @version 1.0.0
  5. // @description Fixes my bad code while we wait for the webstores to publish the update.
  6. // @author Kadauchi
  7. // @include *
  8. // ==/UserScript==
  9.  
  10. const observer = new MutationObserver((mutationList, observer)=> {
  11. const iframe = document.querySelector('iframe[src*="/features/sidebar/pages/sidebar.html"]');
  12.  
  13. if (iframe) {
  14. iframe.src= iframe.src.replace('/features', '');
  15. }
  16.  
  17. });
  18.  
  19. observer.observe(document.body, { childList: true, subtree: true });