-
-
Save Tazeki/4474bc972710872c429e660a6b08681d to your computer and use it in GitHub Desktop.
// ==UserScript== | |
// @name URL Conversion | YouTube - HookTube | |
// @namespace Tazeki | |
// @description The smallest, possibly most useful YouTube-HookTube conversion script. RegEx based. Report bugs to [email protected]. Sends any /www.youtube.com/ sites to HookTube before page load. Does not affect /other.youtube.com/, (gaming.youtube.com, creatoracademy.youtube.com, etc.). | |
// @include *youtube* | |
// @version 1 | |
// @grant none | |
// @run-at document-start | |
// ==/UserScript== | |
var url = window.location.toString(); | |
if (url.indexOf('www.youtube.com') !== - 1) { | |
window.location = url.replace(/youtube.com/, 'hooktube.com'); | |
} else if (url.indexOf('www.youtu.be') !== - 1) { | |
window.location = url.replace(/youtu.be/, 'hooktube.com'); | |
} |
Are there instructions somewhere on how to use this? I suggest it would probably be a good thing. I bumbled around and made it work. Maybe this will some other poor, clueless person:
I'm using Pale Moon. I installed Guerilla Scripting (NOT mispelled) from here:
http://addons.palemoon.org/addon/guerilla-scripting/
Firefox users would probably find Grease Monkey would work the same way. Just guessing.
Then , after studying the content, I downloaded the raw file from here
to this directory:
/home/MY-USER-NAME/.moonchild productions/pale moon/MY-PROFILE-DIRECTORY-NAME/guerrillas/scripts
Firefox users will need to look up how to find their profile directory and maybe read a how to on Grease Monkey .
Works great.
Firefox users will need to look up how to find their profile directory and maybe read a how to on Grease Monkey .
Not at all, @Lew-Rockwell-Fan. Even someone like me, who only had one single script installed was able to do it just fine.
- Copy the piece of code created by Tazeki
- Go to GreaseMonkey and hit the "New User Script" button.
- In the new tab that opens, paste the code and hit the floppy disk/save button
- Test.
And that's it. It's extremely easy.
Here comes my personal version as a user script with config options, you can state which url parts to redirect, confirm option, polymer, global etc ;