/* * @title =A! * @description Hatena Antenna force bulk checker * @include http://a.hatena.ne.jp/HATENA_ID/checklist * @contributor noromanba http://let.hatelabo.jp/noromanba/let/hLHUksLx6YMy * @license MIT License https://opensource.org/licenses/MIT * @javascript_url * @private waiting review */ // TODO // - try-catch // - server safe, avoid (D)DoS // login required (() => { 'use strict'; document.body.querySelectorAll([ 'a[href^="./editpage?cid="]', ]).forEach(async content => { const edit = await window.fetch(content.href, { // use cookie credentials: 'same-origin', // XXX ignoring charset headers: new Headers().set('Content-Type', 'text/html;charset=euc-jp'), }); const txt = await edit.text(); // TBD DOMParser() const url = (txt.match(/^