lkubuntu

A listing of random software, tips, tweaks, hacks, and tutorials I made for Ubuntu

Category Archives: web

How to remove the annoying YouTube lightsaber sound

Google pulled off a clever marketing stunt for Star Wars, allowing you to “choose your side of the force” – which consequently changes various Google products to fit the theme accordingly.

One change they introduced added lightsaber sound effects when you hover over the volume icon on a Youtube video. While being a cute gimmick, I found this to be quite annoying, especially when listening to music, so I spent the morning trying to make a small script that would disable it.

I thought I would share it, since I’m guessing there are others who also find this annoying

It works most of the time, but if you hover over the volume icon before the script has a chance to run, the sound will still happen. Just wait a second or two, and it will work :) Also, if you just installed the extension, you will need to reload the page.

I uploaded a unified codebase to github, mainly since I didn’t like constantly having to copy files from/to various codebases :P Here it is, if anyone’s interested: https://github.com/AnonymousMeerkat/youtube-no-lightsaber

How to fix rfkill Issues

I recently tried making wireless work on a laptop, but I got problems with rfkill showing that it was hard blocked. In fact, the wireless switch was off, but when I set it on, it still showed that it was hard blocked.

Here is a solution that I found that works:

  1. Make sure that your wireless switch is on
  2. Type in a Terminal window:
    sudo rfkill unblock all
    for x in `for i in \`lspci -nn | grep 02[80] | awk '{print $1}' | tr ' ' '\n'\`; do lspci -vvvs $i; done | grep "Kernel driver in use:" | awk '{print $NF}'`; do sudo rmmod $x; sudo modprobe $x; done
    sudo sed -i 's:false:true:g' /var/lib/NetworkManager/NetworkManager.state
    sudo rfkill unblock all
    sudo rm /dev/rfkill
  3. Reboot

If you still can’t connect after the reboot, type this into a Terminal window:
sudo rfkill unblock all
for x in `for i in \`lspci -nn | grep 02[80] | awk '{print $1}' | tr ' ' '\n'\`; do lspci -vvvs $i; done | grep "Kernel driver in use:" | awk '{print $NF}'`; do sudo rmmod $x; sudo modprobe $x; done
sudo rfkill unblock all

If you had any problems with this post, feel free to leave a comment!