Stylish on A:VISITED not working anymore

edited February 5 in Stylish [?]
Hi guys how are you?
There is an Stylish + tapermonkey script that is not working any more today :(

It applys to visited links which i need to track, it chages the color of visited links.

Could some good soul help me? its very very important to me..

i need it to work on the searchs of this website
www.mercadolivre.com.br

an example of a search
https://lista.mercadolivre.com.br/ps4#D[A:ps4]



The Stylish style im using is:
.item a:visited .main-title,
.item a:visited .main-title * {
color: #ccc!important;}

.item a .main-title,
.item a .main-title * {
color: blue!important;
font-weight: bold !important;}

.item__price {
font-size: 18px !important}





The Tapermonkey script im using is:
// ==UserScript==
// @name mercadolivre strip link params
// @author You
// @include /https?://(.*\.)?mercadolivre\.com.*/
// @grant none
// ==/UserScript==

const links = document.querySelectorAll('.item a');
for (var i = 0; i < links.length; i++) {
const noparam = links[i].href.split(/#|\?/)[0];
links[i].href = noparam;
};



I will be really greatfull if somebody can understand what is wrong with it now :)

Comments

  • edited February 5 [?]
    I wrote you the script. Still seems to work fine. The CSS still seems okay too. Best guess would be whatever 'applies-to' rule is set in the style is no longer working for whatever reason. Do you see the style active in the popup when you're on the site?

    If that's the issue, should be a simple fix:
    @-moz-document regexp("https?://(.*\\.)?mercadolivre\\.com.*") {
    .item a:visited .main-title,
    .item a:visited .main-title * {
    color: #ccc !important;
    }

    .item a .main-title,
    .item a .main-title * {
    color: blue!important;
    font-weight: bold !important;
    }

    .item__price {
    font-size: 18px !important
    }
    }
    I recommend using Stylus. You can just paste it straight in the editor, overwrite, and save. Stylish has a mozilla format import button, if it still works.
  • Anagrammar you are always saving and helping me.. i dont know how to thank you..

    well i just installed Stylus and works fine now. may be some bug on stylish extension on my browser?

    well, again thanks thanks and thanks :)
  • Not a problem. =)
Sign In or Register to comment.