Skip to content

Instantly share code, notes, and snippets.

@C-Ezra-M
Last active May 26, 2024 09:59
Show Gist options
  • Save C-Ezra-M/f79e429dfee8e014ef9123fd8357f91c to your computer and use it in GitHub Desktop.
Save C-Ezra-M/f79e429dfee8e014ef9123fd8357f91c to your computer and use it in GitHub Desktop.

Revisions

  1. C-Ezra-M revised this gist May 26, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -144,6 +144,7 @@ $users: (
    Anzasquiddles,
    BigDocFan,
    "C.Ezra.M",
    "Daniel Carrero",
    Lakelimbo,
    Meeper12346,
    Minibug,
    @@ -157,7 +158,6 @@ $users: (
    Blazingfist,
    Boblers,
    Coffee,
    "Daniel Carrero",
    Eridanus,
    Glik,
    Landfish7,
  2. C-Ezra-M revised this gist May 26, 2024. 1 changed file with 127 additions and 15 deletions.
    142 changes: 127 additions & 15 deletions staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    /* New staff highlighting system, utilizing the ::before pseudoelement.
    * NOW WORKS FOR JS-UPDATED RECENT CHANGES!
    * Made into SCSS for easier updating: https://gist.github.com/Keyacom/f79e429dfee8e014ef9123fd8357f91c
    * Made into SCSS for easier updating: https://gist.github.com/C-Ezra-M/f79e429dfee8e014ef9123fd8357f91c
    */

    @use 'sass:list';
    @@ -140,21 +140,133 @@ a.new:hover > * {
    }

    $users: (
    jradmin: (Anzasquiddles, BigDocFan, Nikuriku, Rockapheller, Ruixiang95),
    admin: ("4iamking", Blazingfist, Boblers, Chosen, "Daniel Carrero", Eridanus, Glik, Landfish7, MisterE13, Nescientist,
    Rustle, "Storm Aurora", TehPerson, Wowy, 神奇超龍),
    leadboard: (Abcboy, Ataro, "Frozen Fennec", "Maverick Nate", Pokemaster97, Nuva-kal, SnorlaxMonster, Spriteit, Tiddlywinks),
    execstaff: (Archaic, DigBMGF, Enzap, Evkl, Kogoro, MAGNEDETH),
    bot: (BulbaBot,),
    inactivebot: (MewBot, "Redirect fixer"),
    jradmin: (
    Anzasquiddles,
    BigDocFan,
    "C.Ezra.M",
    Lakelimbo,
    Meeper12346,
    Minibug,
    Nikuriku,
    Rockapheller,
    Ruixiang95,
    SuperPikaPool13,
    ),
    admin: (
    "4iamking",
    Blazingfist,
    Boblers,
    Coffee,
    "Daniel Carrero",
    Eridanus,
    Glik,
    Landfish7,
    MisterE13,
    Nescientist,
    Rustle,
    "Storm Aurora",
    TehPerson,
    Wowy,
    神奇超龍,
    ),
    leadboard: (
    Abcboy,
    Ataro,
    "Frozen Fennec",
    "Maverick Nate",
    Pokemaster97,
    Nuva-kal,
    SnorlaxMonster,
    Spriteit,
    Tiddlywinks,
    ),
    execstaff: (
    Archaic,
    DigBMGF,
    Enzap,
    Evkl,
    Kogoro,
    MAGNEDETH,
    ),
    bot: (
    BulbaBot,
    ),
    inactivebot: (
    MewBot,
    "Redirect fixer",
    ),
    former: (
    Adil, Admingeekz, ArcToraphim, Argy, Arty2, Awesomelink234, Barb, Berrenta, "Bikini Miltank", "Blackjack Gabbiani",
    Carmenstar97, Celadonkey, Clarky13, Cipher, "CoolPikachu!", "Crystal Talian", CycloneGU, Darkeiya, "Dennou Zenshi",
    ElectAbuzzzz, Evie, Fabu-Vinny, "Force Fire", "Funktastic~!", G50, Ht14, Imagize, Iteru, Jello,"Jioruji Derako",
    "Jo The Marten", Jshadias, Kenji-girl, "Lady Ariel", Mamady, Masatoshi, Martonimos, Mikuri, Nyoo, Pachirisulover12,
    "PAK Man", Pie, Politoed666, PsychicRider, Quagbert, RexRacer, Rockersk08, "Rocket Girl", Soramimi, Shiningpikablu252,
    Sketch, Tc26, "The dark lord trombonator", Tina, Toastypk, "Toon Ganondorf", Transfinite, Tsskiller, TTEchidna, "Turtwig A",
    Tygerofdanyte, Umeko, "Unown Lord", Urutapu, User142, Vegard, Virtual-Z, Werdnae, "Zesty Cactus", Zeta, "Zhen Lin",
    Adil,
    Admingeekz,
    ArcToraphim,
    Argy,
    Arty2,
    Awesomelink234,
    Barb,
    Berrenta,
    "Bikini Miltank",
    "Blackjack Gabbiani",
    Carmenstar97,
    Celadonkey,
    Clarky13,
    Cipher,
    "CoolPikachu!",
    "Crystal Talian",
    CycloneGU,
    Darkeiya,
    "Dennou Zenshi",
    ElectAbuzzzz,
    Evie,
    Fabu-Vinny,
    "Force Fire",
    "Funktastic~!",
    G50,
    Ht14,
    Imagize,
    Iteru,
    Jello,
    "Jioruji Derako",
    "Jo The Marten",
    Jshadias,
    Kenji-girl,
    "Lady Ariel",
    Mamady,
    Masatoshi,
    Martonimos,
    Mikuri,
    Nyoo,
    Pachirisulover12,
    "PAK Man",
    Pie,
    Politoed666,
    PsychicRider,
    Quagbert,
    RexRacer,
    Rockersk08,
    "Rocket Girl",
    Soramimi,
    Shiningpikablu252,
    Sketch,
    Tc26,
    "The dark lord trombonator",
    Tina,
    Toastypk,
    "Toon Ganondorf",
    Transfinite,
    Tsskiller,
    TTEchidna,
    "Turtwig A",
    Tygerofdanyte,
    Umeko,
    "Unown Lord",
    Urutapu,
    User142,
    Vegard,
    Virtual-Z,
    Werdnae,
    "Zesty Cactus",
    Zeta,
    "Zhen Lin",
    ),
    );

  3. C-Ezra-M revised this gist May 2, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -141,8 +141,8 @@ a.new:hover > * {

    $users: (
    jradmin: (Anzasquiddles, BigDocFan, Nikuriku, Rockapheller, Ruixiang95),
    admin: ("4iamking", Blazingfist, Boblers, BthrussellUK, Chosen, "Daniel Carrero", Eridanus, Glik, Landfish7, MisterE13,
    Nescientist, "Storm Aurora", TehPerson, Wowy, 神奇超龍),
    admin: ("4iamking", Blazingfist, Boblers, Chosen, "Daniel Carrero", Eridanus, Glik, Landfish7, MisterE13, Nescientist,
    Rustle, "Storm Aurora", TehPerson, Wowy, 神奇超龍),
    leadboard: (Abcboy, Ataro, "Frozen Fennec", "Maverick Nate", Pokemaster97, Nuva-kal, SnorlaxMonster, Spriteit, Tiddlywinks),
    execstaff: (Archaic, DigBMGF, Enzap, Evkl, Kogoro, MAGNEDETH),
    bot: (BulbaBot,),
  4. C-Ezra-M revised this gist Mar 7, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -78,7 +78,7 @@ a.new:hover > * {
    }

    %leadboard-before {
    content: "EB";
    content: "LB";
    background-color: #8c8;
    color: #444;
    }
  5. C-Ezra-M revised this gist Mar 7, 2024. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -143,8 +143,7 @@ $users: (
    jradmin: (Anzasquiddles, BigDocFan, Nikuriku, Rockapheller, Ruixiang95),
    admin: ("4iamking", Blazingfist, Boblers, BthrussellUK, Chosen, "Daniel Carrero", Eridanus, Glik, Landfish7, MisterE13,
    Nescientist, "Storm Aurora", TehPerson, Wowy, 神奇超龍),
    leadboard: (Abcboy, Ataro, "Frozen Fennec", "Maverick Nate", Pokemaster97, Nuva-kal
    SnorlaxMonster, Spriteit, Tiddlywinks),
    leadboard: (Abcboy, Ataro, "Frozen Fennec", "Maverick Nate", Pokemaster97, Nuva-kal, SnorlaxMonster, Spriteit, Tiddlywinks),
    execstaff: (Archaic, DigBMGF, Enzap, Evkl, Kogoro, MAGNEDETH),
    bot: (BulbaBot,),
    inactivebot: (MewBot, "Redirect fixer"),
  6. C-Ezra-M revised this gist Mar 7, 2024. 1 changed file with 13 additions and 57 deletions.
    70 changes: 13 additions & 57 deletions staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -32,19 +32,7 @@ a.new:hover > * {
    font-style: italic;
    }

    %sradmin-username {
    color: #da2;
    font-weight: bold;
    font-style: revert;
    }

    %bureaucrat-username {
    color: #2aa;
    font-weight: bold;
    font-style: revert;
    }

    %editboard-username {
    %leadboard-username {
    color: #6a6;
    font-style: italic;
    font-weight: bold;
    @@ -56,11 +44,6 @@ a.new:hover > * {
    font-weight: bold;
    }

    %retired-username {
    color: #222;
    font-style: italic;
    }

    %bot-username {
    color: #232;
    font-style: italic;
    @@ -94,19 +77,7 @@ a.new:hover > * {
    background-color: #888;
    }

    %sradmin-before {
    content: "SA";
    background-color: #fc4;
    color: #444;
    }

    %bureaucrat-before {
    content: "BC";
    background-color: #4cc;
    color: #444;
    }

    %editboard-before {
    %leadboard-before {
    content: "EB";
    background-color: #8c8;
    color: #444;
    @@ -118,11 +89,6 @@ a.new:hover > * {
    background-image: linear-gradient(to right, #c44, #4c4, #44c, #c44);
    }

    %retired-before {
    content: "RS";
    background-color: #444;
    }

    %bot-before {
    content: "BOT";
    background-color: #444;
    @@ -174,32 +140,22 @@ a.new:hover > * {
    }

    $users: (
    jradmin: ("4iamking", Anzasquiddles, BigDocFan, Boblers, CycloneGU,
    Landfish7, Nikuriku, Rockapheller, "Storm Aurora"),
    admin: (BthrussellUK, "Daniel Carrero", Eridanus, "Frozen Fennec", MisterE13,
    Nescientist, Ruixiang95, TehPerson, Wowy),
    sradmin: (Blazingfist, Chosen, Nuva-kal, 神奇超龍),
    bureaucrat: (Adil, ArcToraphim, Darkeiya, G50),
    editboard: (Abcboy, Ataro, Glik, "Maverick Nate", Pokemaster97,
    jradmin: (Anzasquiddles, BigDocFan, Nikuriku, Rockapheller, Ruixiang95),
    admin: ("4iamking", Blazingfist, Boblers, BthrussellUK, Chosen, "Daniel Carrero", Eridanus, Glik, Landfish7, MisterE13,
    Nescientist, "Storm Aurora", TehPerson, Wowy, 神奇超龍),
    leadboard: (Abcboy, Ataro, "Frozen Fennec", "Maverick Nate", Pokemaster97, Nuva-kal
    SnorlaxMonster, Spriteit, Tiddlywinks),
    execstaff: (Archaic, DigBMGF, Enzap, Evkl, Kogoro, MAGNEDETH),
    retired: (
    Argy, Berrenta, "Bikini Miltank", Carmenstar97, Celadonkey,
    Clarky13, "Crystal Talian", "Dennou Zenshi", ElectAbuzzzz, Fabu-Vinny,
    "Force Fire", "Funktastic~!", Ht14, "Jioruji Derako", "Jo The Marten",
    Kenji-girl, Masatoshi, Nyoo, "PAK Man", Pie, Politoed666, Quagbert,
    RexRacer, Sketch, "The dark lord trombonator", Umeko, Werdnae,
    "Zesty Cactus", "Zhen Lin",
    ),
    bot: (BulbaBot,),
    inactivebot: (MewBot, "Redirect fixer"),
    former: (
    Admingeekz, Arty2, Awesomelink234, Barb, "Blackjack Gabbiani", Cipher,
    "CoolPikachu!", Evie, Imagize, Iteru, Jello, Jshadias, "Lady Ariel",
    Mamady, Martonimos, Mikuri, Pachirisulover12, PsychicRider, Rockersk08,
    "Rocket Girl", Soramimi, Shiningpikablu252, Tc26, Tina, Toastypk,
    "Toon Ganondorf", Transfinite, Tsskiller, TTEchidna, "Turtwig A",
    Tygerofdanyte, "Unown Lord", Urutapu, User142, Vegard, Virtual-Z, Zeta,
    Adil, Admingeekz, ArcToraphim, Argy, Arty2, Awesomelink234, Barb, Berrenta, "Bikini Miltank", "Blackjack Gabbiani",
    Carmenstar97, Celadonkey, Clarky13, Cipher, "CoolPikachu!", "Crystal Talian", CycloneGU, Darkeiya, "Dennou Zenshi",
    ElectAbuzzzz, Evie, Fabu-Vinny, "Force Fire", "Funktastic~!", G50, Ht14, Imagize, Iteru, Jello,"Jioruji Derako",
    "Jo The Marten", Jshadias, Kenji-girl, "Lady Ariel", Mamady, Masatoshi, Martonimos, Mikuri, Nyoo, Pachirisulover12,
    "PAK Man", Pie, Politoed666, PsychicRider, Quagbert, RexRacer, Rockersk08, "Rocket Girl", Soramimi, Shiningpikablu252,
    Sketch, Tc26, "The dark lord trombonator", Tina, Toastypk, "Toon Ganondorf", Transfinite, Tsskiller, TTEchidna, "Turtwig A",
    Tygerofdanyte, Umeko, "Unown Lord", Urutapu, User142, Vegard, Virtual-Z, Werdnae, "Zesty Cactus", Zeta, "Zhen Lin",
    ),
    );

  7. C-Ezra-M revised this gist Dec 29, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -177,7 +177,7 @@ $users: (
    jradmin: ("4iamking", Anzasquiddles, BigDocFan, Boblers, CycloneGU,
    Landfish7, Nikuriku, Rockapheller, "Storm Aurora"),
    admin: (BthrussellUK, "Daniel Carrero", Eridanus, "Frozen Fennec", MisterE13,
    Nescientist, TehPerson, Wowy),
    Nescientist, Ruixiang95, TehPerson, Wowy),
    sradmin: (Blazingfist, Chosen, Nuva-kal, 神奇超龍),
    bureaucrat: (Adil, ArcToraphim, Darkeiya, G50),
    editboard: (Abcboy, Ataro, Glik, "Maverick Nate", Pokemaster97,
  8. C-Ezra-M revised this gist Aug 24, 2023. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    /* New staff highlighting system, utilizing the ::before pseudoelement.
    * NOW WORKS FOR JS-UPDATED RECENT CHANGES!
    * Made into SCSS for easier updating: <github gist link here>
    * Made into SCSS for easier updating: https://gist.github.com/Keyacom/f79e429dfee8e014ef9123fd8357f91c
    */

    @use 'sass:list';
  9. C-Ezra-M created this gist Aug 24, 2023.
    251 changes: 251 additions & 0 deletions staffhl.scss
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,251 @@
    /* New staff highlighting system, utilizing the ::before pseudoelement.
    * NOW WORKS FOR JS-UPDATED RECENT CHANGES!
    * Made into SCSS for easier updating: <github gist link here>
    */

    @use 'sass:list';
    @use 'sass:meta';

    /* Fix Minerva redlink selectors */
    a.new > *,
    a.new:visited > *,
    a.new:hover > * {
    color: revert;
    }

    /* Remove predetermined staff icons */

    #bodyContent a[href^="/wiki/User:"] {
    background: none !important;
    padding-left: initial !important; /* The padding might bother me a bit, so... */
    }

    // Placeholder selectors, please configure from here!

    %jradmin-username {
    color: #a60;
    font-style: italic;
    }

    %admin-username {
    color: #666;
    font-style: italic;
    }

    %sradmin-username {
    color: #da2;
    font-weight: bold;
    font-style: revert;
    }

    %bureaucrat-username {
    color: #2aa;
    font-weight: bold;
    font-style: revert;
    }

    %editboard-username {
    color: #6a6;
    font-style: italic;
    font-weight: bold;
    }

    %execstaff-username {
    color: #22a;
    font-style: italic;
    font-weight: bold;
    }

    %retired-username {
    color: #222;
    font-style: italic;
    }

    %bot-username {
    color: #232;
    font-style: italic;
    }

    %inactivebot-username {
    color: #322;
    }

    %former-username {
    color: #aaa;
    }

    %before-base {
    margin: 0 5px;
    padding: 1px 5px;
    border-radius: 5px;
    color: #ccc;
    font-style: initial;
    font-weight: bold;
    display: inline;
    }

    %jradmin-before {
    content: "JA";
    background-color: #c80;
    }

    %admin-before {
    content: "AD";
    background-color: #888;
    }

    %sradmin-before {
    content: "SA";
    background-color: #fc4;
    color: #444;
    }

    %bureaucrat-before {
    content: "BC";
    background-color: #4cc;
    color: #444;
    }

    %editboard-before {
    content: "EB";
    background-color: #8c8;
    color: #444;
    }

    %execstaff-before {
    content: "XS";
    background-color: #44c; /* fallback in case gradient does not work */
    background-image: linear-gradient(to right, #c44, #4c4, #44c, #c44);
    }

    %retired-before {
    content: "RS";
    background-color: #444;
    }

    %bot-before {
    content: "BOT";
    background-color: #444;
    color: #4c4;
    }

    %inactivebot-before {
    content: "BOT";
    background-color: #444;
    color: #c44;
    }

    %former-before {
    content: "";
    background-color: #ccc;
    color: #444;
    }

    @function normal-attr-selectors($list) {
    $ret: ();
    @each $user in $list {
    $ret: append($ret, '[title=' + meta.inspect("User:" + quote($user)) + "]", comma);
    }
    @return $ret;
    }

    @function semicolon-attr-selectors($list) {
    $ret: ();
    @each $user in $list {
    $ret: append($ret, '[title^=' + meta.inspect("User:" + quote($user) + ";") + "]", comma);
    }
    @return $ret;
    }

    @function noexist-attr-selectors($list) {
    $ret: ();
    @each $user in $list {
    $ret: append($ret, '[title^=' + meta.inspect("User:" + quote($user) + " (page does not exist)") + "]", comma);
    }
    @return $ret;
    }

    @function str-join($list, $delimiter: "") {
    $ret: "";
    @for $i from 1 to length($list) {
    $ret: $ret + nth($list, $i) + $delimiter;
    }
    @return $ret + nth($list, -1);
    }

    $users: (
    jradmin: ("4iamking", Anzasquiddles, BigDocFan, Boblers, CycloneGU,
    Landfish7, Nikuriku, Rockapheller, "Storm Aurora"),
    admin: (BthrussellUK, "Daniel Carrero", Eridanus, "Frozen Fennec", MisterE13,
    Nescientist, TehPerson, Wowy),
    sradmin: (Blazingfist, Chosen, Nuva-kal, 神奇超龍),
    bureaucrat: (Adil, ArcToraphim, Darkeiya, G50),
    editboard: (Abcboy, Ataro, Glik, "Maverick Nate", Pokemaster97,
    SnorlaxMonster, Spriteit, Tiddlywinks),
    execstaff: (Archaic, DigBMGF, Enzap, Evkl, Kogoro, MAGNEDETH),
    retired: (
    Argy, Berrenta, "Bikini Miltank", Carmenstar97, Celadonkey,
    Clarky13, "Crystal Talian", "Dennou Zenshi", ElectAbuzzzz, Fabu-Vinny,
    "Force Fire", "Funktastic~!", Ht14, "Jioruji Derako", "Jo The Marten",
    Kenji-girl, Masatoshi, Nyoo, "PAK Man", Pie, Politoed666, Quagbert,
    RexRacer, Sketch, "The dark lord trombonator", Umeko, Werdnae,
    "Zesty Cactus", "Zhen Lin",
    ),
    bot: (BulbaBot,),
    inactivebot: (MewBot, "Redirect fixer"),
    former: (
    Admingeekz, Arty2, Awesomelink234, Barb, "Blackjack Gabbiani", Cipher,
    "CoolPikachu!", Evie, Imagize, Iteru, Jello, Jshadias, "Lady Ariel",
    Mamady, Martonimos, Mikuri, Pachirisulover12, PsychicRider, Rockersk08,
    "Rocket Girl", Soramimi, Shiningpikablu252, Tc26, Tina, Toastypk,
    "Toon Ganondorf", Transfinite, Tsskiller, TTEchidna, "Turtwig A",
    Tygerofdanyte, "Unown Lord", Urutapu, User142, Vegard, Virtual-Z, Zeta,
    ),
    );

    @each $group, $list in $users {
    $normal: normal-attr-selectors($list);
    $semi: semicolon-attr-selectors($list);
    $noexist: noexist-attr-selectors($list);
    :is(
    .history-user,
    .ns--1 .mw-body,
    #mw-diff-otitle2,
    #mw-diff-ntitle2,
    .mw-warning-with-logexcerpt,
    .ns-6 .filehistory,
    #mw-mf-userinfo
    )
    a:not(
    :is(
    [href*="#"],
    [href*="&action=h"],
    [href*="&diff="],
    [href*="&oldid="],
    [href*="&undo="]
    )
    ):is(
    #{str-join($normal, ",")},
    #{str-join($semi, ",")},
    #{str-join($noexist, ",")}
    ) {
    @extend %#{$group}-username;
    }
    :is(#bodyContent, #mw-mf-userinfo)
    a:not(
    :is(
    [href*="#"],
    [href*="&action=h"],
    [href*="&diff="],
    [href*="&oldid="],
    [href*="&undo="]
    )
    ):is(
    #{str-join($normal, ",")},
    #{str-join($semi, ",")},
    #{str-join($noexist, ",")}
    )::before {
    @extend %before-base;
    @extend %#{$group}-before;
    }
    }