Notice: The devs are no longer actively involved in the forum, so any bug reports regarding the Stylish extension or this website should be sent to them directly at contact@userstyles.org.
Changing your Avatar.
The only way to currently change a forum avatar is through Gravatar.com. The email address used for your Userstyles.org account must be one of the email addresses that is registered to your Gravatar account.

Style code has an error - parse error on value "$" ($end) on line 1435 around "3e;

I have no idea what's causing it, I'm using mainly someone else's code, modifying it and it's working, but Userstyles doesn't seem to like it.

Comments

  • Often this error is because of a missing closing bracket} at the end of the code. Without being able to see your style it's hard to know for sure though. A link to the complete style code would be helpful.

  • Here you will find the style: https://userstyles.org/styles/159674/bs-dark-red-blue-with-background-by-db-coc

    If I add that, I get the error


    .pulse {
    margin:100px;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #cca92c;
    cursor: pointer;
    box-shadow: 0 0 0 rgba(204, 169, 44, 0.4);
    animation: pulse 1.2s infinite;
    }
    .pulse:hover {
    animation: none;
    }
    @-webkit-keyframes pulse {
    0% {
    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0.4);
    }
    70% {
    -webkit-box-shadow: 0 0 0 10px rgba(204, 169, 44, 0);
    }
    100% {
    -webkit-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    }
    }
    @keyframes pulse {
    0% {
    -moz-box-shadow: 0 0 0 0 rgba(207, 170, 35, .7);
    box-shadow: 0 0 0 0 #009dd1;
    }
    60% {
    -moz-box-shadow: 0 0 0 3px rgba(204, 169, 44, .4);
    box-shadow: 0 0 0 3px #009dd1;
    }
    100% {
    -moz-box-shadow: 0 0 0 0 rgba(204, 169, 44, 0);
    box-shadow: 0 0 0 0 #009dd1;
    }
    }
  • Without knowing where you added the code in the style you are modifying I can't give you a definitive answer. You may just need to remove the last closing bracket, but that's just a guess. If you can post your entire modified code to Pastebin or another site and link it, someone here can give you a quick answer.

  • edited December 2018 [?]

    The highlighted part on your code needs a second closing bracket, as shown in the pic:

    image

  • http://prntscr.com/lyjxjb

    As you can see, I did it like you did in the picture, but then I got that mistake...


    1 error prohibited this style from being saved
    There were problems with the following fields:

    Style code looks unintentionally global. Please read https://github.com/JasonBarnabe/stylish/wiki/Preventing-global-styles .
  • Looks like still some trouble with the brackets.
    Try this https://pastebin.com/R1CjGML7

  • Many thanks
    It worked now
Sign In or Register to comment.