index.md 2.64 KB
Newer Older
1
# **YouTube** (youtube.com)
2

3
> “YouTube is an American video-sharing website. YouTube operates as one of Google's subsidiaries.” – [Source](https://en.wikipedia.org/wiki/YouTube)
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

## Ethical design violations

(Learn more about [Ethical Design](https://ind.ie/ethical-design).)

<!-- Automatic: the trackers list is generated and updated by Better Inspector. Please do not edit manually. -->
<!-- trackersList -->

  * (Trackers)
    * ytimg.com
    * fonts.googleapis.com
    * ggpht.com
    * doubleclick.net
    * gstatic.com
    * google.ie
    * google.com
<!-- /trackersList -->

<!-- Manual: You may manually add other ethical design violation badges here. Delete this comment and
     do not leave empty lines between the /trackersList comment, above, and the new list items if you do.

     Valid badges are:

  * (Aggressive)
  * (Doorslam)
  * (Clickbait)
  * (Fingerprint)
  * (Web bug)
-->

<!-- Automatic: the After Better section is generated and updated by Better Inspector. Please do not edit manually. -->
## After Better

  * Requests: <!-- requestsBefore -->58 requests<!-- /requestsBefore --> to <!-- requestsAfter -->54 requests<!-- /requestsAfter --> (<!-- requestsBlocked -->4 requests<!-- /requestsBlocked --> blocked, <!-- deltaRequests -->7% Safer<!-- /deltaRequests -->)
  * Weight: <!-- sizeBefore -->1.95 MB<!-- /sizeBefore --> to <!-- sizeAfter -->1.95 MB<!-- /sizeAfter --> (<!-- sizeSaved -->1.41 KB<!-- /sizeSaved --> saved, <!-- deltaSize -->0% Lighter<!-- /deltaSize -->)
  * Speed: <!-- timeBefore -->8.14 seconds<!-- /timeBefore --> to <!-- timeAfter -->7.75 seconds<!-- /timeAfter --> (<!-- timeSaved -->0.39 seconds<!-- /timeSaved --> saved, <!-- deltaTime -->5% Faster<!-- /deltaTime -->)

Statistics by [Better Inspector](https://source.ind.ie/better/inspector) based on [the page](https://archive.better.fyi/youtube.com.har.gz) as on <!-- lastUpdate -->Thursday, September 20th 2018<!-- /lastUpdate -->

## Block rules

45
### Block adtech
46

47
Hide adtech in the sidebar. As you’re already on the YouTube site, we can’t block YouTube tracking via their ads.
48
49
50

```mson
- trigger:
51
  - url-filter: youtube.com
52
53
  - load-type: first-party
- action:
54
  - selector: #container.ytd-iframe-companion-renderer > *.ytd-iframe-companion-renderer:last-child:not(#google_companion_ad_div), #player-ads, .iv-promo, .overlay-ads, .youtubeSuperLeaderBoardAdHolder, .youtubeSuperLeaderOverallAdArea, #masthead-ad, .video-ads
55
  - type: css-display-none
56
```
57

58
59
60
61
62
63
64
65
66
67
68
But allow the button to Skip Ads through.


```mson
- trigger:
  - url-filter: youtube.com
  - load-type: first-party
- action:
  - selector: .ytp-ad-player-overlay-skip-or-preview
  - type: ignore-previous-rules
```