Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit c6c5be1

Browse files
committed
Fixed #20
1 parent 3242b33 commit c6c5be1

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"web_accessible_resources": [
2020
"css/*.css",
2121
"svg/*.svg",
22-
"src/injected/tagify.2.28.4.min.js",
22+
"src/injected/tagify.2.31.3.min.js",
2323
"src/injected/voting.js"
2424
],
2525
"content_scripts": [{

src/content/main.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
loadScript('/src/injected/tagify.2.28.4.min.js')
1+
loadScript('/src/injected/tagify.2.31.3.min.js')
22
loadScript('/src/injected/voting.js')
33

44
async function initializeVoting(problemId, defaultLevel, myVote) {
@@ -89,7 +89,7 @@ async function initializeVoting(problemId, defaultLevel, myVote) {
8989

9090
const algorithmInputScript = document.createElement("script")
9191
algorithmInputScript.innerHTML = "var algorithmSuggestionInput=new Tagify(document.querySelector('#algorithm_input'),"
92-
+ "{enforceWhitelist: true, whitelist: whitelist, dropdown: {enabled: 1, classname: 'algorithm_dropdown'}, delimiters: '[|]'});"
92+
+ "{enforceWhitelist: true, whitelist: whitelist, autocomplete: false, dropdown: {enabled: 1, classname: 'algorithm_dropdown', maxItems: Infinity, highlightFirst: true}});"
9393
+ "algorithmSuggestionInput.addTags(JSON.parse(" + JSON.stringify(JSON.stringify(selectedAlgorithms)) + "))"
9494
difficultySection.appendChild(algorithmInputScript)
9595

@@ -263,6 +263,4 @@ getPrefs('hide_indicators', 'false')
263263
if (!isBOJStack() && JSON.parse(hideIndicators) === false) {
264264
addLevelIndicators();
265265
}
266-
})
267-
268-
if (!isBOJStack()) $('.dropdown-toggle').dropdown()
266+
})

0 commit comments

Comments
 (0)