From 4a7a9dedda650cced6e7e545327dcbdcc04385f9 Mon Sep 17 00:00:00 2001 From: Suyeong Rhie Date: Sun, 21 Feb 2021 21:44:30 +0900 Subject: [PATCH] rename trimmer --- background.js | 2 +- trimmer.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/background.js b/background.js index 8385425..584439b 100644 --- a/background.js +++ b/background.js @@ -5,7 +5,7 @@ */ function trimmerListener(details) { - browser.tabs.executeScript(details.tabId, {file: "namutrimmer.js"}, function(){}); + browser.tabs.executeScript(details.tabId, {file: "trimmer.js"}, function(){}); } browser.webNavigation.onHistoryStateUpdated.addListener( diff --git a/trimmer.js b/trimmer.js index aa68d33..d52daff 100644 --- a/trimmer.js +++ b/trimmer.js @@ -5,7 +5,7 @@ * @license MIT */ -function namuTrimmer() { +function trimmer() { let article = fetchArticle() let strikes = article.getElementsByTagName("del") let links = article.getElementsByTagName("a") @@ -50,4 +50,4 @@ function fetchArticle() { return origin.children.item(4).children.item(origin.children.item(4).children.length - 1).children.item(0).children.item(0) } -namuTrimmer() \ No newline at end of file +trimmer() \ No newline at end of file