Tiện ích trình duyệt Firefox
  • Tiện ích mở rộng
  • Chủ đề
    • cho Firefox
    • Từ điển & gói ngôn ngữ
    • Các trang web trình duyệt khác
    • Tiện ích cho Android
Đăng nhập
Xem trước Set Netflix Title

Set Netflix Title bởi GaryTsukla

For watching Netflix on your PC, in your browser. Changes the tab's title to match the show you are watching.

0 (0 reviews)0 (0 reviews)
1 User1 User
Bạn sẽ cần Firefox để sử dụng tiện ích mở rộng này
Tải xuống Firefox và tải tiện ích mở rộng
Tải xuống tập tin

Siêu dữ liệu mở rộng

Về tiện ích mở rộng này
# Adjust Window Title on Netflix

This is a 5-minute extension I made for Firefox.

I have a few tabs open for different shows on Netflix, and the tab's title is always "Netflix" instead of the show I'm watching. It's a little annoying because, sometimes, I can't remember which show is on which tab.

I made this quick extension, to change the tab's title to the title of the show.

Now I can see which tab is for which show, without having to click on it or work from my own memory.

# Problems

One of the issues I faced was the way Netflix displays the name of the show, on the webpage.

It's interesting that they actually delete elements completely, rather than just hiding them. This seems like a mistake, since it takes more resources on the client computer to create and destroy elements constantly. Hiding and showing the elements would probably provide better performance.

Unfortunately, this means getting the name of the show is actually really difficult because this information might not actually be available anywhere in the DOM.

When you first load the page, the title is in the DOM for a short time, but not immediately on load. So, I do a quick check every 0.4 seconds and update the title if it's available.

Unfortunately, in the case where you finish an episode, and it automatically loads the next episode, the title is not in the DOM (as far as I'm aware). In this case, I found it best to save the title from our last successful attempt, and store it in local storage; and then just use the saved title instead. This works in almost all cases, but in the event it is wrong, a simple refresh of the page reliabily gets the title to appear in the DOM.

# Conclusion

Since I can't hack into Netflix and force them to show the title haha, and the title is only available at random times, my solution here is the best I can do, without investing a lot more time into it.

I just wanted this to be a quick thing, but I could invest a lot more time looking into the DOM and finding awkward workarounds to detect the title whenever it appears on the screen. This would take a while though, maybe 1 or 2 hours.

I'm happy with this simple solution, for what is really just an issue of my personal convenience.
Được xếp hạng 0 (bởi 1 người dùng)
Đăng nhập để đánh giá tiện ích này
Chưa có xếp hạng nào

Đã lưu xếp hạng sao

5
0
4
0
3
0
2
0
1
0
Chưa có đánh giá
Quyền hạn và dữ liệuTìm hiểu thêm

Quyền hạn bắt buộc:

  • Truy cập dữ liệu của bạn cho các trang web trong tên miền netflix.com
Thêm thông tin
Liên kết tiện ích
  • Trang hỗ trợ
Phiên bản
0.0.5
Kích cỡ
9,41 KB
Cập nhật gần nhất
3 năm trước (8 Thg 12 2022)
Thể loại có liên quan
  • Diện mạo
  • Thẻ
Giấy phép
Giấy phép MIT
Lịch sử các phiên bản
  • Xem tất cả phiên bản
Thêm vào bộ sưu tập
Báo cáo tiện ích này
Tiện ích mở rộng khác của GaryTsukla
  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

Đi đến trang chủ Mozilla

Tiện ích

  • Giới thiệu
  • Blog tiện ích Firefox
  • Extension Workshop
  • Trung tâm nhà phát triển
  • Chính sách nhà phát triển
  • Blog cộng đồng
  • Diễn đàn
  • Báo cáo một lỗi
  • Hướng dẫn đánh giá

Trình duyệt

  • Desktop
  • Mobile
  • Enterprise

Sản phẩm

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Riêng tư
  • Cookie
  • Pháp lý

Trừ trường hợp khác đã ghi chú, nội dung trên trang này được cấp phép theo giấy phép Creative Commons Attribution Share-Alike v3.0 hoặc bất kỳ phiên bản nào sau này.