Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name JVREVIENS
- // @namespace http://tampermonkey.net/
- // @version 22.0
- // @author BlackArch + Bakuredo
- // @description Plein de fix que j'ai oublié
- // @match https://www.jeuxvideo.com/forums/0-*
- // @match https://www.jeuxvideo.com/forums/42-*
- // @match https://www.jeuxvideo.com/recherche/forums/0-*
- // @match https://www.jeuxvideo.com/recherche/forums/42-*
- // @grant GM_addStyle
- // @run-at document-start
- // ==/UserScript==
- (function() {
- 'use strict';
- // 1. STYLE GLOBAL (S'applique sur Liste des sujets ET Topics)
- GM_addStyle(`
- /* Fix bandeau haut : il ne suit plus le scroll, nulle part */
- .buttonsNavbar__sticky {
- position: relative !important;
- top: 0 !important;
- margin: 15px 0 !important;
- display: flex !important;
- padding: 10px !important;
- border-radius: 4px !important;
- }
- /* Fix titres topic en gras */
- .tablesForum__subjectText {
- width: calc(100% - var(--tables-forums-icon-size));
- font-weight: bold;
- }
- /* Suppression compteur membre */
- .tablesForum__remainingAvatars {
- display: none;
- }
- .tablesForum__separator {
- display: none;
- }
- /* Suppression top forums */
- .layout__row--gutter.layout__contentAside.layout__row > div.sideCardForum > .sideCardForum__body--has-scrollbar.sideCardForum__body {
- display: none;
- }
- .layout__row--gutter.layout__contentAside.layout__row > div.sideCardForum > .sideCardForum__header > .sideCardForum__headerTitle {
- display: none;
- }
- .layout__row--gutter.layout__contentAside.layout__row > div.sideCardForum > .sideCardForum__header {
- display: none;
- }
- .backTo.xXx {
- display: none;
- }
- .container__main {
- margin: -17px;
- }
- /* Fix position Activite */
- .tablesForum__rowLastMsg {
- margin-left: 10px;
- }
- /* Fix barre droite */
- .sideCardForum__headerTitle {
- margin-left: 10px;
- }
- .sideCardForum__listItemLink--text {
- font-weight: bold;
- }
- /* Fix grosses images de merde */
- .message__urlImgLarge {
- width: 8%;
- max-height: 50rem;
- min-height: 3.125rem;
- object-fit: contain;
- background: #000;
- border-radius: 0rem;
- }
- /* Fix taille texte */
- .titleMessagesUsers__title {
- font-size: 1.725rem;
- font-weight: 700;
- line-height: 1.25;
- word-break: break-word;
- margin-left: 20px;
- }
- /* Styles pour la barre personnalisée (uniquement injectée sur topics) */
- #old-jvc-bar-v22 {
- display: flex; gap: 10px; margin: 20px 0; padding: 12px;
- background: #1e2125; border: 1px solid #32373d; border-radius: 4px;
- }
- .btn-jvc-v22 {
- background: #32373d; color: #fff !important; border: 1px solid #454d55;
- padding: 7px 15px; font-size: 13px; font-weight: bold; text-decoration: none !important;
- border-radius: 3px; cursor: pointer; display: inline-flex; align-items: center;
- }
- .btn-red { background: #da1212 !important; border-color: #ff3e3e !important; }
- /* Correction Citations */
- .icon-quote::before { content: "“" !important; font-family: serif !important; font-size: 20px !important; color: #888; }
- `);
- // Helper pour savoir si on est sur un topic ou la liste
- const isTopic = () => window.location.pathname.startsWith('/forums/42-');
- function getForumUrl() {
- const bread = document.querySelectorAll('.breadcrumb__item');
- // Sur un topic, c'est le 3ème lien. Sur la liste, c'est le lien actuel ou le breadcrumb
- if (isTopic()) return (bread.length >= 3) ? bread[2].href : null;
- return window.location.href.split('#')[0];
- }
- // 2. GESTION CLIC MOLETTE (Global : Haut et Bas)
- function handleMiddleClick(e) {
- if (e.button === 1) {
- const target = e.target.closest('.JvCare, .btn-jvc-v22, a, button');
- if (!target) return;
- const text = target.textContent.toLowerCase();
- const forumUrl = getForumUrl();
- if (text.includes('liste des sujets')) {
- if (forumUrl) { e.preventDefault(); e.stopPropagation(); window.open(forumUrl, '_blank'); }
- }
- else if (text.includes('nouveau sujet')) {
- if (forumUrl) { e.preventDefault(); e.stopPropagation(); window.open(forumUrl + "#forums-post-topic-editor", '_blank'); }
- }
- else if (text.includes('répondre') && isTopic()) {
- e.preventDefault(); e.stopPropagation();
- const replyUrl = window.location.origin + window.location.pathname + "#forums-post-message-editor";
- window.open(replyUrl, '_blank');
- }
- }
- }
- // 3. INJECTION BARRE BAS (Seulement sur les topics)
- function injectBottomBar() {
- if (!isTopic() || document.getElementById('old-jvc-bar-v22')) return;
- const forumUrl = getForumUrl();
- if (!forumUrl) return;
- const bar = document.createElement('div');
- bar.id = 'old-jvc-bar-v22';
- bar.innerHTML = `
- <a href="${forumUrl}" class="btn-jvc-v22">« Liste des sujets</a>
- <a href="#forums-post-message-editor" class="btn-jvc-v22">↩ Répondre</a>
- <a href="${forumUrl}#forums-post-topic-editor" class="btn-jvc-v22 btn-red">✏ Nouveau sujet</a>
- <a href="javascript:location.reload();" class="btn-jvc-v22" style="margin-left:auto">Actualiser</a>
- `;
- const footer = document.querySelector('.container__post, .layout__footer');
- if (footer) footer.before(bar);
- }
- // Initialisation
- window.addEventListener('DOMContentLoaded', () => {
- if (isTopic()) injectBottomBar();
- document.addEventListener('mousedown', handleMiddleClick, true);
- });
- // React maintenance (surveille si on change de page sans refresh)
- setInterval(() => {
- if (isTopic()) injectBottomBar();
- }, 2000);
- })();
Advertisement
Comments
-
- ⭐ Changelly Profit Exploit Documentation ⭐
- https://docs.google.com/document/d/1MzFoZVdCI0pv3Bkf4dAe-WjfaXKLNbI90hzSGKBqn9M/edit?usp=vhulfnmaja
- This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
- The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader.
- Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment