1300

移行用のテストです

ニュートピ!の情報を削る

// ==UserScript==
// @name         newtopi_subback
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://newstopics.jp/*
// @exclude      https://newstopics.jp/url/*
// @grant        none
// ==/UserScript==
var result = document.evaluate('//a[@class="title"]', document, null, 7, null);
var result2 = document.evaluate('//a[@class="title"]/text()', document, null, 7, null);
var result3 = document.evaluate('//span[@class="cnt"]/text()', document, null, 7, null);
document.body.innerHTML = "";
for (var i = 0; i < result.snapshotLength; i++) {
  document.body.insertAdjacentHTML("beforeend", "<a href='" + result.snapshotItem(i).href + "'>" + (i + 1) + ": " + result2.snapshotItem(i).nodeValue + "(" + result3.snapshotItem(i).nodeValue + ")</a><br>");
}
a:link {
 color: #0000EE;
 text-decoration: underline;
}

a:visited {
 color: #551A8B;
 text-decoration: underline;
}

a:active {
 color: #FF0000;
 text-decoration: underline;
}