// ==UserScript==
// @title 2nn_sc
// @name 2nn_sc
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.2nn.jp/*
// @grant none
// ==/UserScript==
var result = document.evaluate('//a[contains(@href,"/mnewsplus/")]', document, null, 7, null);
for (var i = 0; i < result.snapshotLength; i++) {
var r_url=result.snapshotItem(i).href;
r_url=r_url.replace('hayabusa9.5ch.net', 'hayabusa3.2ch.sc');
result.snapshotItem(i).href=r_url;
}
var result2 = document.evaluate('//a[contains(@href,"/newsplus/")]', document, null, 7, null);
for (var j = 0; j < result2.snapshotLength; j++) {
r_url=result2.snapshotItem(j).href;
r_url=r_url.replace('asahi.5ch.net', 'ai.2ch.sc');
result2.snapshotItem(j).href=r_url;
}
var result3 = document.evaluate('//a[contains(@href,"/seijinewsplus/")]', document, null, 7, null);
for (var k = 0; k < result3.snapshotLength; k++) {
r_url=result3.snapshotItem(k).href;
r_url=r_url.replace('fate.5ch.net', 'nozomi.2ch.sc');
result3.snapshotItem(k).href=r_url;
}
var result4 = document.evaluate('//a[contains(@href,"/news4plus/")]', document, null, 7, null);
for (var x = 0; x < result4.snapshotLength; x++) {
r_url=result4.snapshotItem(x).href;
r_url=r_url.replace('lavender.5ch.net', 'awabi.2ch.sc');
result4.snapshotItem(x).href=r_url;
}
var result5 = document.evaluate('//a[contains(@href,"/bizplus/") or contains(@href,"/news5plus/") or contains(@href,"/scienceplus/") or contains(@href,"/femnewsplus/") or contains(@href,"/moeplus/") or contains(@href,"/dqnplus/")]', document, null, 7, null);
for (var y = 0; y < result5.snapshotLength; y++) {
r_url=result5.snapshotItem(y).href;
r_url=r_url.replace('egg.5ch.net', 'anago.2ch.sc');
result5.snapshotItem(y).href=r_url;
}