Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Click YES on Youtube
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @grant GM_setValue
- // @grant GM_getValue
- // @grant GM_setClipboard
- // @grant unsafeWindow
- // @grant window.close
- // @grant window.focus
- // @include *youtube.com*
- // ==/UserScript==
- (function() {
- for(var i = 0, len = document.links.length; i < len; i += 1) {
- if(document.links[i].textContent === "yes") {
- document.links[i].click();
- }
- }
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement