Skip to content

Commit

Permalink
rename trimmer
Browse files Browse the repository at this point in the history
  • Loading branch information
noxowl committed Feb 21, 2021
1 parent 4ae4ddd commit 4a7a9de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion background.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
4 changes: 2 additions & 2 deletions trimmer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @license MIT
*/

function namuTrimmer() {
function trimmer() {
let article = fetchArticle()
let strikes = article.getElementsByTagName("del")
let links = article.getElementsByTagName("a")
Expand Down Expand Up @@ -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()
trimmer()

0 comments on commit 4a7a9de

Please sign in to comment.