baptx

Add Twitter night mode button

Sep 11th, 2017
1,655
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. document.getElementById("user-dropdown").getElementsByTagName("ul")[0].innerHTML += `
  2. <li class="dropdown-divider" role="presentation"></li>
  3. <li class="current-user nightmode-toggle" data-name="profile" role="presentation">
  4.     <a class="js-nav" data-nav="view_profile" role="menuitem">
  5.         <span class="DashUserDropdown-linkIcon Icon Icon--medium js-nightmode-icon Icon--crescent">
  6.         </span><span class="js-nightmode-label">Night mode</span>
  7.     </a>
  8. </li>`;
RAW Paste Data