11/* eslint-disable no-console, camelcase */
2- const fs = require ( 'node:fs' ) ;
3- const axios = require ( 'axios' ) ;
4- const { EOL } = require ( 'node:os' ) ;
2+ import fs from 'node:fs' ;
3+ import axios from 'axios' ;
4+ import { EOL } from 'node:os' ;
55
6- const {
7- REMOVED_MARKER ,
8- COMPATIBILITY_TABLE_DATA_PATH ,
9- } = require ( './constants' ) ;
6+ import { REMOVED_MARKER , COMPATIBILITY_TABLE_DATA_PATH } from './constants' ;
107
118/* ************************************************************************
129 *
@@ -225,6 +222,7 @@ async function getCurrentUBOScriptlets() {
225222 *
226223 * @returns {Diff|null } diff
227224 */
225+ // eslint-disable-next-line no-unused-vars
228226async function checkForUBOScriptletsUpdates ( ) {
229227 const oldList = getScriptletsFromTable ( 'ubo' ) ;
230228 const newList = await getCurrentUBOScriptlets ( ) ;
@@ -397,17 +395,18 @@ async function checkForABPRedirectsUpdates() {
397395 */
398396( async function init ( ) {
399397 const UBORedirectsDiff = await checkForUBORedirectsUpdates ( ) ;
400- const UBOScriptletsDiff = await checkForUBOScriptletsUpdates ( ) ;
398+ // TODO: fix building wiki, ubo changed format of their source. AG-39652
399+ // const UBOScriptletsDiff = await checkForUBOScriptletsUpdates();
401400 const ABPRedirectsDiff = await checkForABPRedirectsUpdates ( ) ;
402401 const ABPScriptletsDiff = await checkForABPScriptletsUpdates ( ) ;
403402
404403 if ( UBORedirectsDiff ) {
405404 markTableWithDiff ( UBORedirectsDiff , 'redirects' , 'ubo' ) ;
406405 }
407406
408- if ( UBOScriptletsDiff ) {
409- markTableWithDiff ( UBOScriptletsDiff , 'scriptlets' , 'ubo' ) ;
410- }
407+ // if (UBOScriptletsDiff) {
408+ // markTableWithDiff(UBOScriptletsDiff, 'scriptlets', 'ubo');
409+ // }
411410
412411 if ( ABPRedirectsDiff ) {
413412 markTableWithDiff ( ABPRedirectsDiff , 'redirects' , 'abp' ) ;
@@ -417,7 +416,12 @@ async function checkForABPRedirectsUpdates() {
417416 markTableWithDiff ( ABPScriptletsDiff , 'scriptlets' , 'abp' ) ;
418417 }
419418
420- const diffs = [ UBORedirectsDiff , UBOScriptletsDiff , ABPRedirectsDiff , ABPScriptletsDiff ] ;
419+ const diffs = [
420+ UBORedirectsDiff ,
421+ // UBOScriptletsDiff,
422+ ABPRedirectsDiff ,
423+ ABPScriptletsDiff ,
424+ ] ;
421425
422426 if ( diffs . some ( ( diff ) => ! ! diff ) ) {
423427 const removed = diffs
0 commit comments