BlackList 2.0

Permet de censurer un topic

目前為 2017-06-07 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name        BlackList 2.0
// @author samsamdu44
// @namespace   ?
// @description Permet de censurer un topic 
// @include http://www.jeuxvideo.com/*
// @include http://www.forumjv.com/*
// @version     1
// @grant       none
// ==/UserScript==

var forumeurChoisi1 = "";
var forumeurChoisi2 = "";
var forumeurChoisi3 = "";
var forumeurChoisi4 = "";
var forumeurChoisi5 = "";

for (var i = 0; i <= 22; i++) {
  if (document.getElementsByClassName("xXx text-user topic-author")[i].innerText == forumeurChoisi1 || document.getElementsByClassName("xXx text-user topic-author")[i].innerText == forumeurChoisi2 || document.getElementsByClassName("xXx text-user topic-author")[i].innerText == forumeurChoisi3 || document.getElementsByClassName("xXx text-user topic-author")[i].innerText == forumeurChoisi4 || document.getElementsByClassName("xXx text-user topic-author")[i].innerText == forumeurChoisi5) {
    document.getElementsByClassName("xXx text-user topic-author")[i].innerText = "Censuré";
    document.getElementsByClassName("xXx text-user topic-author")[i].style.color = "#FF0000";
    document.getElementsByClassName("xXx text-user topic-author")[i].style.fontStyle = "italic";
    document.getElementsByClassName("lien-jv topic-title")[i + 4].innerText = "Censuré";
    document.getElementsByClassName("lien-jv topic-title")[i + 4].style.color = "#FF0000";
    document.getElementsByClassName("lien-jv topic-title")[i + 4].style.fontStyle = "italic";
  }
}