Best AdBlocker for X.com / Twitter.com Blocks and removes all ads, sponsored tweets. Hide block or remove panels like 'Subscribe Premium' or 'Who to Follow'.
Twitter X Ads Blocker by wykopchanger
Details
Authorwykopchanger
LicenseNo License (YOU CAN USE THIS CODE ONLY IN STYLUS EXTENSIONS. You are NOT ALLOWED TO copy, share and use any part of this code anywhere else without author's written permission)
Categoryx.com
Created
Updated
Size44 kB
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
You dont't have to buy Premium+ to get rid of ads. Save hundreds of dollars with this add-on.
This style allows you to block hide and remove ads adverts and sponsored tweets on Twitter X.
Blocking Ads
- Remove Ads
- Remove Sponsored Tweets
If you decide to disable ad blocking features, you can:
- Blur/grayscale and/or make advertisements semi-transparent
- Add extra visual marker to recognize adverts
Hiding blocks on Twitter X
- hide
Trends
in sidebar - hide
Who to Follow
in sidebar - hide
Footer
in sidebar - hide
Subscribe to Premium
in sidebar
Search Keywords: Adblock Adblocker ads blocker ublock origin block ads blocking ads blocker remove ads hide ads remove sponsored sponsor block advertisments advertisements blocker block ads adsblock wykop x style
Source code
Source code has over 10K characters, so we truncated it. You can inspect the full source code on install link./* ==UserStyle==
@name Twitter X Ads Blocker
@version 1.0.7
@description Best AdBlock for X.com / Twitter.com Blocks and removes all ads, sponsored tweets. You can customise and remove irrelevant panels like Subscribe Premium or Who to Follow. adblock, adsblock. uBlock. Remove ads. Block hide remove advertisements and adverts.
@description https://wiki.wykopx.pl
Support and buy a small coffee https://buycoffee.to/wykopx
---- AUTHOR ----
@author Wykop X <wykopx@gmail.com> | wiki.wykopx.pl
@homepageURL http://wiki.wykopx.pl
@supportURL https://buycoffee.to/wykopx
---- AUTHOR ----
@var range HR_AD_blocker `AD BLOCKER` [0, 0, 99900, 1, 'mm']
@var select adsRemoval `⛔ Block Ads` {
"Show ads":"disabled",
"Block & remove ads*":"enabled",
}
@var select sponsoredRemoval `⛔ Sponsored tweets` {
"Show sponsored tweets":"disabled",
"Block & remove sponsored tweets*":"enabled",
}
@var range HR_SHOW_ADS_PREFERENCES `SHOWING ADs PREFERENCES` [0, 0, 99900, 1, 'mm']
@var checkbox adsStylingOpacity `Ads semi-transparent` 1
@var checkbox adsStylingGrayedOut `Ads in grayscale` 1
@var checkbox adsStylingBluredOut `Ads blurred` 1
@var checkbox adsMarkerShow `Show info marker on every ad` 1
@var range HR_HIDE_STREAM `HIDE STREAM ELEMENTS` [0, 0, 99900, 1, 'mm']
@var checkbox removeTimelineSubscribePremium `⛔ Hide "Subscribe Premium" announcement` 1
@var checkbox removeTimelineAnnouncements `⛔ Hide X announcements on Home stream` 0
var checkbox removeTimelineCreatorsForYou `⛔ Hide "Creators For You"` 1
var checkbox removeTimelineDiscoverNewCommunities `⛔ Hide "Discover new Communities"` 1
@var checkbox removeTimelineWhoToFollow `⛔ Hide "Who to follow"` 1
@var checkbox removeTimelineDiscoverMore `⛔ Hide "Discover more" below comments` 1
@var range HR_HIDE_LEFT_MENU `HIDE LEFT MENU ITEMS` [0, 0, 99900, 1, 'mm']
@var checkbox removeLeftHome `⛔ Hide "Home"` 0
@var checkbox removeLeftExplore `⛔ Hide "Explore"` 0
@var checkbox removeLeftNotifications `⛔ Hide "Notifications"` 0
@var checkbox removeLeftMessages `⛔ Hide "Messages" 🔹` 0
@var checkbox removeLeftBookmarks `⛔ Hide "Bookmarks"` 1
@var checkbox removeLeftJobs `⛔ Hide "Jobs"` 1
@var checkbox removeLeftCommunities `⛔ Hide "Communities"` 0
@var checkbox removeLeftPremium `⛔ Hide "Premium"` 1
@var checkbox removeLeftVerified `⛔ Hide "Verified Orgs"` 1
@var checkbox removeLeftProfile `⛔ Hide "Profile"` 0
@var checkbox removeLeftMore `⛔ Hide "More..."` 0
@var checkbox removeReadonlyPostButton `⛔ Hide "Post" button in left menu 🔸` 0
@var range HR_HIDE_STREAM `HIDE SIDEBAR ELEMENTS` [0, 0, 99900, 1, 'mm']
@var checkbox removeSidebarSubscribePremium `⛔ Hide "Subscribe Premium"` 1
@var checkbox removeSidebarBlockWhoToFollow `⛔ Hide "Who to follow"` 1
@var checkbox removeSidebarBlockTrends `⛔ Hide "Trends"` 0
@var checkbox removeSidebarTOSFooter `⛔ Hide sidebar Footer` 1
@var range HR_HIDE_TWEET_ELEMENTS `HIDE TWEET ELEMENTS` [0, 0, 99900, 1, 'mm']
@var checkbox removeReadonlyShareButton `⛔ Hide share button 🔸` 0
@var range HR_HIDE_READONLY `TURN OFF POSTING - READ-ONLY MODE 🔸` [0, 0, 99900, 1, 'mm']
@var checkbox removeReadonlyPreset `[PRESET 🔸] Enable read-only mode` 0
@var checkbox removeReadonlyNewEntry `⛔ Hide new entry textbox 🔸` 0
@var checkbox removeReadonlyNewCommentTextbox `⛔ Hide new comment textboxes 🔸` 0
@var checkbox removeReadonlyNewCommentModal `⛔ Hide new comment modal 🔸` 0
@var range HR_HIDE_OTHER_ELEMENTS `TURN OFF MESSAGING` [0, 0, 99900, 1, 'mm']
@var checkbox removeMessagesPreset `[PRESET 🔹] Turn off Messaging (DMs)` 0
@var checkbox removeMessagesBox `⛔ Hide "Messages" box 🔹` 0
@var checkbox removeMessageButton `⛔ Hide "Message" button on user profile 🔹` 0
@var range HR_EXTRA_FEATURES `EXTRA FEATURES` [0, 0, 99900, 1, 'mm']
@var checkbox tweetsShowDateTime `⌚ Date & time in tweets (e.g. 2024-12-31 23:59:59)` 1
@var range HR_TESTING `DEBUGGING` [0, 0, 99900, 1, 'mm']
@var checkbox dev `Show and mark blocked/hidden elements` 0
@preprocessor stylus
@namespace userstyles.world/user/wykopchanger
@license No License (YOU CAN USE THIS CODE ONLY IN STYLUS EXTENSIONS. You are NOT ALLOWED TO copy, share and use any part of this code anywhere else without author's written permission)
==/UserStyle== */
@-moz-document domain("x.com"), domain("twitter.com")
{
i = !important;
if(removeReadonlyPreset == 1)
{
removeReadonlyPostButton = 1;
removeReadonlyNewEntry = 1;
removeReadonlyNewCommentTextbox = 1;
removeReadonlyNewCommentModal = 1;
removeReadonlyShareButton = 1;
}
if(removeMessagesPreset == 1)
{
removeLeftMessages = 1;
removeMessagesBox = 1;
removeMessageButton = 1;
}
if(removeMessagesBox == 1)
{
div.r-12vffkv > div > div[data-testid="DMDrawer"]
{
if(dev) { border: 10px solid #004eff i; }
else { display: none i; }
}
}
if(removeMessageButton == 1)
{
div[data-testid="primaryColumn"] div[data-testid^="UserAvatar"] + div > button[data-testid="sendDMFromProfile"]
{
if(dev) { border: 3px solid #004eff i; }
else { display: none i; }
}
}
div[data-testid="cellInnerDiv"]:has(div.r-1kkk96v span)
{
/* border: 3px solid red i; */
}
if(sponsoredRemoval == "enabled")
{
div[data-testid="cellInnerDiv"]:has(path[d="M19.498 3h-15c-1.381 0-2.5 1.12-2.5 2.5v13c0 1.38 1.119 2.5 2.5 2.5h15c1.381 0 2.5-1.12 2.5-2.5v-13c0-1.38-1.119-2.5-2.5-2.5zm-3.502 12h-2v-3.59l-5.293 5.3-1.414-1.42L12.581 10H8.996V8h7v7z"])
{
if(dev) { border: 10px solid #d1e123 i; }
else { display: none i; }
}
/* div[data-testid="cellInnerDiv"]:has(svg + div > span)
{
outline: 3px solid white i;
} */
}
if(adsRemoval == "enabled")
{
/* div.r-1kkk96v - right aligned top post */
div[data-testid="cellInnerDiv"]:has(div.r-1kkk96v > div > div > span)
{
if(dev) { border: 10px solid #1ed940 i; }
else { display: none i; }
}
}
else
{
div[data-testid="cellInnerDiv"]:has(div.r-1kkk96v span):not(:hover)
{
transition: all 0.2s;
display: flex i;
position: absolute i;
if(adsStylingOpacity == 1)
{
opacity: 0.3 i;
}
if(adsStylingGrayedOut == 1)
{
filter: grayscale(1) i;
if(adsStylingBluredOut == 1)
{
filter: grayscale(1) blur(3px) i;
}
}
else if(adsStylingBluredOut == 1)
{
filter: blur(3px) i;
}
}
if(adsMarkerShow == 1)
{
div[data-testid="cellInnerDiv"] div.r-1kkk96v span
{
display: none i;
}
div[data-testid="cellInnerDiv"]:has(div.r-1kkk96v span):before
{
display: flex;
position: fixed;
z-index: 999999;
right: 0px;
top: 150px;
width: 20%;
content: "Advertisement";
font-family: TwitterChirp, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
padding: 13px 13px 13px 20px;
font-size: 0.9rem;
font-weight: 600;
color: rgba(220, 220, 220, 1);
background-color: rgba(40, 40, 40, 0.9);
...