HF Trustscan

Add a Trustscan button to the posts of the members from HF. - Hash G.

目前為 2015-06-18 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name        HF Trustscan
// @namespace   HF Trustscan
// @description Add a Trustscan button to the posts of the members from HF. - Hash G.
// @include     http://www.hackforums.net/*
// @version     1
// @grant       none
// ==/UserScript==

if (document.URL.indexOf("showthread.php") >= 0) {
  var uid = document.querySelectorAll('a[title="Find all posts by this user"]');
  var buttonsLocation = document.querySelectorAll('.author_buttons.float_left');

  for (n=0; n < uid.length; n++) {
    var a_trustscan = document.createElement('a');
    var trustscan_text = document.createTextNode("Trustscan");
    a_trustscan.appendChild(trustscan_text);
    a_trustscan.setAttribute('title', 'Trustscan of this user');
    a_trustscan.setAttribute('target', '_blank');
    a_trustscan.setAttribute('class', 'bitButton');
    a_trustscan.setAttribute('href', 'http://www.hackforums.net/trustscan.php?uid=' + uid[n]);
    buttonsLocation[n].appendChild(a_trustscan);
  }
}