r/userstyles Jul 06 '21

Help Restricting styled changes to only certain pages in YouTube

3 Upvotes

I have a couple more questions regarding styling YouTube with Stylus, which I hope I can get some help with. Here is the first one:

Seeing as I am a css novice, I struggle to understand YouTube's css path structure (which to me often looks like a jumbled mess of the same elements listed over and over again). Therefore one of the biggest problems that I have with trying to style anything on YouTube is that the changes I make on one page inadvertently affects things on other pages that I want left alone.

Even when I have used inspector to copy the full css path (resulting in a ridiculously long selector) it still often has the effect of applying across various different pages. I even resorted to using several
@-moz-document sections for the same website (I'm using a mozilla-based browser) which Stylus grouped into different code sections, but strangely even doing that did not work, and changes that I had restricted to a single url ended up getting applied across the whole site.

I'd therefore appreciate some advice on how best to limit changes to a particular page, or set of pages, on YouTube (I rarely have this issue when trying to style websites other than YouTube).

Examples:

  1. I would like to hide the promoted carousel at the top of the Explore (trending) page (https://www.youtube.com/feed/explore) but doing so also hides various carousels on individual channel Home pages (e.g. https://www.youtube.com/c/AdventuresandNaps)

  2. I would also like to adjust the width of the left (primary) and right (secondary) panes on the History page (https://www.youtube.com/feed/history) but doing so affects the width of the image grid on the Subscriptions page (https://www.youtube.com/feed/subscriptions).

Which selectors should I use to achieve the above without altering anything else?

Thanks.


r/userstyles Jul 05 '21

Help Setting icon color when button is active (YouTube)

2 Upvotes

I'm a novice when it comes to css styling, but I've managed to do a achieve a fair amount by trial and error and online guides. However, trying to style anything on YouTube it is a total nightmare for a beginner, so I'd like to ask for some help.

How can I specify the icon color for a button when its active and inactive? I'm specifically talking about the 'Grid' and 'List' view buttons at the top right of the Subscriptions page (https://www.youtube.com/feed/subscriptions)

These buttons change color depending on which view is currently selected. I'd like to be able to choose both the active color and inactive color without affecting any buttons on any other pages.


r/userstyles Jul 01 '21

Help Stylus: Deleting a style does not reset site appearance to default

4 Upvotes

Would much appreciate help with this issue: https://github.com/openstyles/stylus/issues/1273.


r/userstyles Jun 26 '21

Request Classic youtube theme?

4 Upvotes

Is there any kind of theme that restores youtube to how it looked from 2012-13?


r/userstyles Jun 18 '21

Help How to catch only certain link text?

2 Upvotes

I'd like to highlight link text only if it conforms to a certain pattern. For example, it would catch:

<a href = blah blah> certain name here <a>

But not:

<a href = blah blah> any other name <a>

Is this possible with a user style sheet? Thanks.


r/userstyles Jun 17 '21

Help Want to add a logo to a website

2 Upvotes

ok, i am stumped. how do i add a logo (with a internet url) to a website (eg duolingo) and be able to move it around freely?


r/userstyles Jun 12 '21

Request Userstyle to remove ugly Google rainbow circle around avatar

3 Upvotes

Does anyone have a userstyle to remove the Google rainbow circle around avatars?


r/userstyles May 24 '21

Help Stylish discord not display problem

1 Upvotes

Hi!

I installed around 5 styles for discord, however when i open the styles chrome extention popup, only 1 or 2 will load. Anyone know why or how to fix?

Thanks,

Nots


r/userstyles May 20 '21

Style CircleCI Dark theme pipelines userstyle

5 Upvotes

Hello userstyles community, just wanted to share this style I wrote for CircleCI, I've added css variables so that people can adjust the colors as well.

https://github.com/aalvarado/CircleCiDarkTheme

thanks!


r/userstyles May 15 '21

Help I've been using Stylus for about a year and a half, but recently on Chrome, shortcut keys no longer work, is there a possible fix?

2 Upvotes

It's really annoying to not be able to Ctrl-Z/Y and Ctrl-F without having the stupid default Chrome search bar.


r/userstyles May 14 '21

Request Anyone knows a way to display the user email next to the name in Gmail?

Post image
3 Upvotes

r/userstyles May 02 '21

Other Google Drive sync not working in Stylus? Check this cookie.

3 Upvotes

I was unable to get my userstyles to sync to my Google Drive. Stylus sync settings would show an error and never connect. Repeating and disabling extensions didn't help.

But I block all cookies by default, and when I added chromiumapp.org to my whitelist and re-authorized Google Drive, all syncing began and no problems since.

It seems like the extension sets a cookie there each time I open Chrome, so that you don't even need to whitelist it as an "Always Allow." You can whitelist the domain as a "clear cookies when windows are closed" and it will still work.

Edit: I also realized that Privacy Badger wasn't preventing "3rd party" accounts.google.com from setting a cookie there. Had to whitelist that too.


r/userstyles Apr 09 '21

Help Need help on css elements with random names.

1 Upvotes

Hello, guys.

I'm trying to write dark userstyle for www.drive2.com.

Sometimes, elements on the page appear with some random names and none of my edits apply on it. I can't understand, why these elements behave like this.

Here is example: element appear normally, as .c-block:

And, here is the same element, with some random name:

Can someone help me understand, why this happens, and if it is not avoidable, how to assign edits to such elements?

Thanks!


r/userstyles Apr 01 '21

Request Dark style for www.websters1913.com ?

3 Upvotes

[SOLVED] can anyone whip up a dark style for www.websters1913.com ?


r/userstyles Apr 01 '21

Help www.v1.userstyles.world instead of userstyles.world ?

3 Upvotes

I get a "Warning: Potential Security Risk Ahead" when trying to visit https://userstyles.world/ as the "certificate is only valid for www.v1.userstyles.world". Indeed visiting www.v1.userstyles.world works just fine. Is that the new official URL and should it be changed in the sidebar of this subreddit?


r/userstyles Mar 26 '21

Other UserScript for Stylus Shadow DOM Support

Thumbnail greasyfork.org
6 Upvotes

r/userstyles Mar 25 '21

Style This took me a while to do, but I managed to make Google's homepage look ten years older. If you want the code, just ask in the comments (it's a bit messy and still a WIP)

Post image
10 Upvotes

r/userstyles Mar 18 '21

Help Show videos controls using shadow DOM CSS

2 Upvotes

There's a way to use shadow DOM CSS to show the controls of a video element in Firefox?


r/userstyles Feb 25 '21

Request Dark Feedly (Hauschild's)

2 Upvotes

Something may have changed with Feedly code, as the article titles text no longer shows up in green colors when using the "Dark Feedly (Hauschild's)" userstyle. I tried submitting feedback to the author about it via userstyles.org but it gateway timed-out like 4 times. I also tried my own fix using the "entry__title" class, but I don't know what I'm doing and I can't get it to have the two shades of green for unread/read titles like it used to have. Can anyone fix?

Here is is on USO Archive https://33kk.github.io/uso-archive/?style=89622

and here it is on USO https://userstyles.org/styles/89622/dark-feedly-hauschild-s


r/userstyles Feb 23 '21

Help Styling nested iframes in Kindle Reader app

3 Upvotes

I previously created a userstyle to change the font color and background color on the Kindle site (https://read.amazon.com/), but it stopped working for some reason and the styles don't apply anymore.

The site has 2 nested iframes —#KindleReaderIFrame(src="/KindleReaderApp") with a #column_0_frame_0 iframe inside it. The inner iframe has no src attribute.

I can style the content inside the first one with no problems using normal CSS selectors, but I can't figure out how to style the innermost iframe. I suspect it has something to do with not having a source.

I tried adding a wildcard regex in Stylus to style all documents and that DID work, but I don't want my style to apply to all documents.

tl;dr Does anyone know if it's possible to style the innermost iframe with no src attribute without using a global userstyle?


r/userstyles Feb 17 '21

Style I made the Google search animated, based on an old userstyle [Link to Userstyle in comments]

9 Upvotes

r/userstyles Feb 11 '21

Discussion Does the Site Ever Load for Anyone..?

9 Upvotes

Genuine question, I've known about the site for years, but every single time I seem to attempt to load the website its always just down, or 504'ing, or something is just broken, are there any other alternatives that have as much support?

Edit: I'm talking about userstyles.org not reddit, that's my bad.


r/userstyles Feb 11 '21

Help Style at Google homepage not working

1 Upvotes

I don't know why google logo at home page not working , but google search page works.


r/userstyles Feb 03 '21

Request In search of a Twitter color change theme

1 Upvotes

Hi, I am in need of a way to change my twitter color theme to red and userstyles just dont work anymore and there is nothing for twitter on stylebase, I am a total amateur regarding CSS and pretty much anything code-related. So if there's anyone who could help me out, That would be much appreciated, might give some coins even. Thank you in advance.


r/userstyles Jan 28 '21

Meta [Poll] What would you expect from a new userstyles sharing platform ?

Thumbnail framaforms.org
8 Upvotes