/*
* @title isNotoSerif!
* @description [DONE] fix "NotoSerif Subset OTF" wrong links
* @include https://www.google.com/get/noto/help/cjk/
* @license MIT License http://opensource.org/licenses/MIT
* @javascript_url
*/
// already has been fixed c.f.
// http://ptech.g.hatena.ne.jp/noromanba/20170404/1491337619
// UserScript
// https://gist.github.com/noromanba/a479fa5bc3c4619383ee62f6af74c923
// "Region-specific Subset OpenType/CFF (Subset OTF)" section c.f.
// https://www.google.com/get/noto/help/cjk/
(() => {
'use strict';
/*
// XXX use XPath, smart
// TODO assertion
const subsetOTF = [...document.body.querySelectorAll('.cjk-downloads')].pop();
const subsetOTFSerif = [...subsetOTF.querySelectorAll('tbody tr')].pop();
Array.from(subsetOTFSerif.querySelectorAll([
'a[href*="/NotoSans"]'
]), serif => serif.href = serif.href.replace(/\/NotoSans/, '/NotoSerif'));
*/
})();