Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Youtube link changer
- // @namespace null
- // @description Changes Youtube links.
- // @match http://*
- // @match https://*
- // @include http://*
- // @include https://*
- // @version 1.0
- // ==/UserScript==
- function init() {
- var a = document.querySelectorAll('a');
- for(var i=0,len=a.length;i<=len-1;i++){
- a[i].href = a[i].href.replace('youtube.com/watch?v=','youtube.com/v/');
- };
- };
- init();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement