This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name YouTube Auto Skip Ads | |
| // @description Skips ads on YouTube | |
| // @namespace https://pirateboy.net | |
| // @version 1.1 | |
| // @author Jonk | |
| // @match https://www.youtube.com/* | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:yturl=window.location.href;ytarr=yturl.split("?v=");ytqs=ytarr[1];ytqs=ytqs.replace("&","?");ytelem=document.getElementById("movie_player");yttime=Math.floor(ytelem.getCurrentTime());document.getElementsByTagName("video")[0].pause();if(ytqs.indexOf("?")>-1){ytqsstart="&"}else{ytqsstart="?"}window.open("https://www.youtube.com/embed/"+ytqs+ytqsstart+"autoplay=1&start="+yttime,ytqs,"width=400,height=300");void(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function fmd_image_sizes() { | |
| if ( function_exists( 'add_image_size' ) ) { | |
| add_image_size( 'bigger_thumbnail', 300, 300, true ); //will be visible in admin | |
| add_image_size( 'carousel', 1300, 380, true ); //will not be visible in admin | |
| } | |
| } | |
| add_action( 'init', 'fmd_image_sizes' ); | |
| function fmd_chooseable_image_sizes( $sizes ) { | |
| return array_merge( $sizes, array( |