<?xml version="1.0" encoding="utf-8" ?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:tt="http://teletype.in/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"><title>Gleb Deriyenko</title><author><name>Gleb Deriyenko</name></author><id>https://teletype.in/atom/gderiyenko</id><link rel="self" type="application/atom+xml" href="https://teletype.in/atom/gderiyenko?offset=0"></link><link rel="alternate" type="text/html" href="https://teletype.in/@gderiyenko?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=gderiyenko"></link><link rel="next" type="application/rss+xml" href="https://teletype.in/atom/gderiyenko?offset=10"></link><link rel="search" type="application/opensearchdescription+xml" title="Teletype" href="https://teletype.in/opensearch.xml"></link><updated>2026-05-30T12:19:40.992Z</updated><entry><id>gderiyenko:qPHDPkr1vk8</id><link rel="alternate" type="text/html" href="https://teletype.in/@gderiyenko/qPHDPkr1vk8?utm_source=teletype&amp;utm_medium=feed_atom&amp;utm_campaign=gderiyenko"></link><title>How I boost my web experience</title><published>2022-05-06T23:38:04.941Z</published><updated>2022-05-07T11:06:00.124Z</updated><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img2.teletype.in/files/db/26/db2694c0-4d4b-462b-9057-6d0322f81fdc.png"></media:thumbnail><summary type="html">&lt;img src=&quot;https://img4.teletype.in/files/32/af/32afd51c-3350-4179-bc93-6182017f9bf2.png&quot;&gt;This time I've implemented a custom Adblocker extension for Chrome.</summary><content type="html">
  &lt;p id=&quot;hmI3&quot;&gt;This time I&amp;#x27;ve implemented a custom Adblocker extension for Chrome.&lt;/p&gt;
  &lt;p id=&quot;UR5n&quot;&gt;Init file named &amp;#x27;manifest.json&amp;#x27; looks like this:&lt;/p&gt;
  &lt;figure id=&quot;noiU&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/32/af/32afd51c-3350-4179-bc93-6182017f9bf2.png&quot; width=&quot;838&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;ACKB&quot;&gt;I need &amp;#x60;content-script.js&amp;#x60; to run on a webpage first loads.&lt;/p&gt;
  &lt;p id=&quot;Ii03&quot;&gt;There are a lot of banners that could be hidden with simple adding CSS styles. So that&amp;#x27;s will be my first function in there:&lt;/p&gt;
  &lt;figure id=&quot;mzr1&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/9a/b0/9ab0105d-151b-47b7-a89e-b8efa3183f6a.png&quot; width=&quot;986&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;q0mW&quot;&gt;Next, I implement AdBlock features for each site I need it to.&lt;/p&gt;
  &lt;h2 id=&quot;oxMc&quot;&gt;Keybr.com&lt;/h2&gt;
  &lt;p id=&quot;wZyJ&quot;&gt;Here I tried a few ways to kick banners out from the working area&lt;/p&gt;
  &lt;figure id=&quot;ocaN&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img3.teletype.in/files/ad/8a/ad8a11d8-af02-4cd8-8736-a2632bae319a.png&quot; width=&quot;1536&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;m6af&quot;&gt;Here is Before/After comparing:&lt;/p&gt;
  &lt;figure id=&quot;wwk8&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img2.teletype.in/files/55/6b/556b3d03-f4e6-469d-923c-3aa2f915b8d2.png&quot; width=&quot;3074&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;5h3p&quot;&gt;I&amp;#x27;m glad with this result. Let&amp;#x27;s move on with my next experiments.&lt;/p&gt;
  &lt;h2 id=&quot;Ho8Q&quot;&gt;Reddit&lt;/h2&gt;
  &lt;p id=&quot;adYT&quot;&gt;This source has a lot of issues. And the first thing I would like to do here is to disable all images and videos it shows in the news feed.&lt;/p&gt;
  &lt;p id=&quot;A9ry&quot;&gt;This works perfectly with aforementioned applyCSS( ) function.&lt;/p&gt;
  &lt;figure id=&quot;J9yw&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/c9/7a/c97a37a1-e292-48e1-88bd-a649325843b2.png&quot; width=&quot;970&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;BOEg&quot;&gt;Now, it&amp;#x27;s a big pleasure to me to skip one extra Amber Heard meme and surely talanted art.&lt;/p&gt;
  &lt;figure id=&quot;fGeW&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/bb/39/bb397d92-8664-4905-a7dc-81ddcbbb12cc.png&quot; width=&quot;2102&quot; /&gt;
  &lt;/figure&gt;
  &lt;h2 id=&quot;Md6h&quot;&gt;Yandex music&lt;/h2&gt;
  &lt;p id=&quot;OLBj&quot;&gt;The hardest one. And it still WIP. &lt;/p&gt;
  &lt;p id=&quot;UnkR&quot;&gt;Here I making skip for video banners which appears pretty randomly.&lt;/p&gt;
  &lt;figure id=&quot;VK0v&quot; class=&quot;m_column&quot;&gt;
    &lt;img src=&quot;https://img4.teletype.in/files/f7/d5/f7d5e4aa-ab78-434b-b2c0-00ddb632c3f0.png&quot; width=&quot;1838&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;ptKH&quot;&gt;The main thing here is that I&amp;#x27;ve added observer on player-controls. It helps me to indicate when a new audio track begins to play. &lt;/p&gt;
  &lt;p id=&quot;v1zz&quot;&gt;If the new track is a banner and the webpage contains one more video file, it runs the script which moves video playback to its end. Function skipVideo() also makes the banner mute, so even on track moving it will not disturb the user.&lt;/p&gt;
  &lt;p id=&quot;HC1a&quot;&gt;Here is the result, where you can see it skips advertising tracks that are initially 30+ sec long in a few seconds.&lt;/p&gt;
  &lt;figure id=&quot;RJmY&quot; class=&quot;m_custom&quot;&gt;
    &lt;img src=&quot;https://img1.teletype.in/files/4e/50/4e5083bc-637c-43fd-b189-f29101d8e571.gif&quot; width=&quot;600&quot; /&gt;
  &lt;/figure&gt;
  &lt;p id=&quot;0Csa&quot;&gt;Console errors aren&amp;#x27;t mine btw.&lt;/p&gt;

</content></entry></feed>