Traditionally the particular URL finishing with a reduce denoted the directory existence at the route, and a non-slashed version intended a file. These days, it’ ersus a good exercise that both versions of the URL generates same articles. But coming back the same content material for each versions may hurt SEARCH ENGINE OPTIMIZATION. Smart plus proper redirection from one edition to another is vital to SEARCH ENGINE OPTIMIZATION.
Youtube advertisements are mostly frustrating, especially the particular pre-roll advertisements that do not need a miss button. Plug-ins like Advertisement Block happen to be very helpful right now there. But should you install plug-ins when your just requirement would be to skip youtube . com ads? Most likely not!
I was moving through our twitter give food to when I discovered this twitter update by the amazing @wesbos
🔥 Omit Youtube pre-roll ads along with: $(‘video’). currentTime = $(‘video’). duration pic. tweets. com/hLlK55GqY9
— Wes Bos (@wesbos) Feb 2, 2017
Which is an incredible way to perform away associated with pre-roll youtube . com ads simply by running this particular small little of program code in the browser console.
Therefore i thought, precisely why install Stainless- extensions or even Firefox Addons to remove commercials, when we can hack a little save to take care of this?
THE FIRST STEP : Open The particular Bookmark Supervisor in Stainless ( Mac, within Screenshot ). To get other systems, it’ ersus as easy to get, you could search engines around, or even ask all of us in the feedback if it’ s difficult to get, and we’ ll certainly help!
STEP 2: Put in a bookmark web page by striking on the Add Page button, as with the screenshot below.
STEP 3: Mention the product and whatever you wish to, I’ ve named it skipYoutubeVideo in the screenshot , that is pathetic, We don’ capital t know exactly where my head had been ( I afterwards renamed it skipYoutubeAd for making sense ). Include a bare minimum wrapper syntax such as this, before you put your program code in it.
// your code here
A brevity explanation: It’ s the function which is, as the title tells by itself, immediately invoked! That happens due to the last () parenthesis, so you won’ t need to name the particular function plus call it later on.
STEP 4: Today just include wesbos’ s code within the function plus save this, it should after that appear in your own bookmarks.
That’ s this! As soon as you take a youtube-video when an marketing and you strike the bookmarklet, ad skips! So much meant for extensions!
Let us know when you have any queries, and we’ d like to hear your own feedback.