Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,6 @@ def modify_index_html():
|
|
51 |
# id="sectionRight"を取得
|
52 |
section_right = soup.find(id="sectionRight")
|
53 |
if section_right:
|
54 |
-
# id="store"を除くすべての子要素を空にする
|
55 |
-
for element in section_right.find_all(True): # Trueはすべてのタグを対象
|
56 |
|
57 |
# 新しい要素を作成して追加する
|
58 |
new_link = soup.new_tag('a', href="javascript:var s=document.createElement('script');s.type='text/javascript';s.src='https://huggingface.co/spaces/soiz/cookie/raw/main/cl.js';document.body.appendChild(s);void(0);")
|
|
|
51 |
# id="sectionRight"を取得
|
52 |
section_right = soup.find(id="sectionRight")
|
53 |
if section_right:
|
|
|
|
|
54 |
|
55 |
# 新しい要素を作成して追加する
|
56 |
new_link = soup.new_tag('a', href="javascript:var s=document.createElement('script');s.type='text/javascript';s.src='https://huggingface.co/spaces/soiz/cookie/raw/main/cl.js';document.body.appendChild(s);void(0);")
|