sis001 helper

sis001 remove noSselect and replace all a tags domain to sis001.com

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         sis001 helper
// @namespace    https://sis001.com/
// @version      0.5
// @description  sis001 remove noSselect and replace all a tags domain to sis001.com
// @author       cccp Huzzah Ура
// @match        *://*.sis001.com/*
// @match        *://154.84.5.250/*
// @match        *://154.84.5.235/*
// @match        *://154.84.5.249/*
// @match        *://ecj.sisurl.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';


    var postContainers = document.querySelectorAll("div.t_msgfont");
    if(postContainers&&postContainers.length>0){
        [].forEach.call(postContainers, function(div) {
           div.classList.remove('noSelect');
            var aTags = div.querySelectorAll("a");
            if (aTags&&aTags.length){
                    //aTags.forEach((elem) => {
                   [].forEach.call(aTags, function(elem) {
                   var href = elem.getAttribute('href');
                    if ( href.includes('68.168.16.151') ) {
                        elem.setAttribute('href', href.replace('68.168.16.151','sis001.com'))
                    }
                    if(href.includes('69.4.239.124')){
                     elem.setAttribute('href', href.replace('69.4.239.124','sis001.com'))
                    }
                    if(href.includes('67.220.92.22')){
                     elem.setAttribute('href', href.replace('67.220.92.22','sis001.com'))
                    }
                    if(href.includes('67.220.91.29')){
                     elem.setAttribute('href', href.replace('67.220.91.29','sis001.com'))
                    }
                    if(href.includes('66.90.68.150')){
                     elem.setAttribute('href', href.replace('66.90.68.150','sis001.com'))
                    }
                     if(href.includes('38.103.161.149')){
                     elem.setAttribute('href', href.replace('38.103.161.149','sis001.com'))
                    }
                });
            }

        });



    }




})();