// ==UserScript== // @name JV Blacklist 2.0 // @namespace http://tampermonkey.net/ // @version 2.0 // @description Script permettant de blacklister les topics de la liste des sujets en fonction de mots-clés // @author sNet // @match https://www.jeuxvideo.com/forums/0-51-* // @grant none // @downloadURL https://update.greasyfork.cloud/scripts/414558/JV%20Blacklist%2020.user.js // @updateURL https://update.greasyfork.cloud/scripts/414558/JV%20Blacklist%2020.meta.js // ==/UserScript== //Initialisation du tableau dataBl let regexL; let regexR; let dataBl; // language = css let css = ` /* ---- CODE CSS ---- */ /* Les couleurs variable (en cours d'implémentation) */ /* CSS pour régler la barre ou est placé le bouton ouvrant le modal */ .options-crumb { align-items:center; display:flex; } /* Stylé générique pour les boutons du modal */ .btnsModal{ border:none; outline:none; color:#aaaaaa; filter:brightness(100%); padding:4px; margin:5px; background:#355164; } .btnsModal:hover{ filter:brightness(70%); } /* Bouton ouvrant le modal */ #btnParam { font-family: 'Varela Round', sans-serif; letter-spacing: 0.1em; color: #e8e8e8; border: none; border-radius: 10px; outline: none; background: #3c3c3c; background-size: 400% 400%; cursor: pointer; filter:brightness(100%); } #btnParam:hover { filter:brightness(70%); } /* Modal */ .modal-closed { display:none; } .modal-open { font-family:"Roboto", sans-serif; font-weight:bold; display:grid; grid-template-rows: 15% 85%; grid-row-gap: 15px; width:20%; z-index:10000000000000000000000; position:fixed; top: 0; bottom:0; right: 0; background:#333; border:solid #aaaaaa 1px; color:#aaaaaa; } /* HEADER */ #modalHeader { align-items:center; display:grid; grid-template-columns: auto auto; justify-items: center; } #title { color:#aaa; letter-spacing: 0.1em; font-family: 'Varela Round', sans-serif; white-space: nowrap; font-size:150%; font-weight:normal; } #modalCloseBtn { background:none; border:none; outline:none; color:#aaaaaa; font-size: 150%; } #modalCloseBtn:hover { color:#b00000; } /* MODAL Main body */ .modal-body-open { display:grid; grid-template-rows: 85% 15% ; grid-row-gap: 10px; align-content: space-between; justify-items:center; } #modalMainBody{ display:grid; grid-template-rows: 10% auto ; width:100%; align-itemps:center; justify-items:center; } .modal-body-closed{ display:none; } /* Main Footer */ #modalMainFooter{ display:grid; align-content: space-between; align-items:center; } #saveBtn { background:#015151; } #saveBtn:hover { filter:brightness(70%); } #saveReloadBtn { background:#333363; } #saveReloadBtn:hover { filter:brightness(70%); } #optionBtn { background:#410c47; } #optionBtn:hover { filter:brightness(70%); } #savedText { background-color:rgba(0,0,0,0); font-weight:bold; font-size:30px; opacity:0; align-self:center; color:#66FF85; border: 1px solid #66FF85; padding:4px; } /* TAG */ #blInput { width: 90%; border: #000 1px solid !important; text-align:center; } #blInput:focus { outline:none; border: #6d6d6d 1px solid !important; } #blValue { width:90%; background-color:#4a4a4a; overflow:auto; } .blTag { background-color:#1a1a1a; padding:0.20em; margin:5px; display:inline-block; } .rmTag { background:none; border:none; outline:none; color:#aaaaaa; font-size: 100%; margin-left:0; margin-right:10px; } .rmTag:hover {color:#b00000;} /* FADE IN FADE OUT */ .error{ animation-name: error; animation-duration: 2s; } @keyframes error { 0% {background-color: #1a1a1a;} 50% {background-color: #b00000;} 100% {background-color: #1a1a1a;} } .success{ animation-name: success; animation-duration: 2s; } @keyframes success { 0% {background-color: #1a1a1a;} 50% {background-color: rgba(121, 255, 167, 0.4);} 100% {background-color: #1a1a1a;} } `; // language=HTML let html = `