Yaplakal del Admin-block

Removes block user "Administration"

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

You will need to install an extension such as Tampermonkey to install this script.

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        Yaplakal del Admin-block
// @description Removes block user "Administration"
// @namespace   lainscripts_scissors
// @include     http://www.yaplakal.com/*
// @include     http://yap.ru/*
// @version     2.2
// @grant       none
// ==/UserScript==

var a = document.querySelectorAll('form > table[id^="p_row_"]');
var b = document.querySelectorAll('tr > .holder.newsbottom');
var words = /member1438|Administration/;
for (var i=0;i<a.length;i++) if (words.test(a[i].innerHTML))
a[i].parentNode.removeChild(a[i]);
for (var i=0;i<b.length;i++) if (words.test(b[i].innerHTML)){
var row = b[i].parentNode.rowIndex;
var table = b[i].parentNode.parentNode;
table.deleteRow(row);
table.deleteRow(row-1);
table.deleteRow(row-2);
}