Unicode NamesList specific fix #13
Replies: 1 comment
-
Additional fix to the Character Properties of Unicode Utilities. Injected JS core part: if ( /^UnicodeJsps\/+character\.jsp(?=[?#]|$)/i.test(
location.href.match( /^[\w\-]{1,32}:\/\/[^\/]+\/+(.*)/s )[1] )
) {
// >>>>
document.querySelectorAll( '.changed' ).forEach(
function ( x ) {
if ( ! x ) { return; };
while ( x.parentNode.nodeName.toLowerCase() !== 'tr' ) {
x = x.parentNode; };
// ^ Upward until "<tr>".
var x1 = x.previousSibling;
x1 && x1.nodeName.toLowerCase() === 'td' && (
// >>>> (1)
x1.insertAdjacentHTML( 'beforeend', '<hr/>' ),
x.childNodes.forEach( ( x ) => { x1.appendChild( x ); } ),
x.parentNode.removeChild( x )
// <<<< (1)
);
} );
// <<<<
}; ]] Test page content archive: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noted the web version Unicode NamesList [1] not pleasantly usable [2] so decided to fix it self... (via uBlock Origin)
[[
/unicode\.org\/+charts\/+nameslist(?=[\/?#]|$)/$doc,frame,replace=/<frameset\s([^<]*?(?<![\w\-])rows(?![\w\-]).*?>.*?)<frame\s[^<]*?(?<![\w\-])name\s*?=\s*?["']chart["'].*?>/<frameset rows \$1/si
/unicode\.org\/+charts\/+nameslist\/+mainList\.html?(?=$|[#?])/$doc,frame,replace=/<a\s([^<]*?(?<![\w\-])href\s*?=\s*?["'](?:[^"']*?\/)?)c(?=_[\da-f]{4,6}\.html?["'])/<a target="names" \$1n/gsi
]]
See [ https://github.com/orgs/community/discussions/5972#discussioncomment-7809031 ] for related help.
[1] https://unicode.org/charts/nameslist/
[2] "chart" area taking much space meanwhile not of much use.
Beta Was this translation helpful? Give feedback.
All reactions