Skip to content

Commit 526df0a

Browse files
authored
Merge pull request #18 from TomasTNunes/dev
merge 'dev' into 'master' for release
2 parents b38494d + 5356284 commit 526df0a

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,13 @@ Here are some handy tips and tricks to enhance your experience with the extensio
100100
### 3. Choose Your Default Streaming Server
101101
- Customize your experience by selecting your preferred default server in the extension popup. This ensures your streaming webpage always opens with your chosen server.
102102

103-
### 4. Android: App-Like Experience
103+
### 4. Quick Navigation Back to TMDB
104+
- Clicking on the movie/tv show title on the streaming webpage will redirect you to the corresponding TMDB page, making it easier to switch between these two.
105+
106+
### 5. Android: App-Like Experience
104107
- For a more seamless, app-like experience on Android, add the TMDB homepage to your device’s home screen. This allows quick access without opening a browser.
105108

106-
### 5. Edge: Install TMDB as an App
109+
### 6. Edge: Install TMDB as an App
107110
- On Microsoft Edge, you can install TMDB as a standalone app for a more immersive experience. Here’s how:
108111
1. Go to the [TMDB website](https://www.themoviedb.org/).
109112
2. Click on the three dots (settings) in the top-right corner.
@@ -144,3 +147,7 @@ If you have any questions, encounter issues, or have suggestions for improvement
144147
![Streaming Servers](assets/screenshots/player_movie.png)
145148

146149
![Streaming Servers](assets/screenshots/player_show.png)
150+
151+
### Popup:
152+
153+
![Popup](assets/screenshots/popup.png)

src/assets/popup/popup.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,22 @@ serverSelect.addEventListener('change', () => {
3939
});
4040

4141
// Open TMDB Website
42-
tmdbButton.addEventListener('click', () => {
43-
window.open('https://www.themoviedb.org/', '_blank');
42+
document.addEventListener("DOMContentLoaded", () => {
43+
tmdbButton.addEventListener('click', () => {
44+
chrome.tabs.create({ url: 'https://www.themoviedb.org/' });
45+
});
4446
});
4547

4648
// Open GitHub Repository
47-
gitButton.addEventListener('click', () => {
48-
window.open('https://github.com/TomasTNunes/TMDB-Player/tree/master?tab=readme-ov-file#tmdb-player', '_blank');
49+
document.addEventListener("DOMContentLoaded", () => {
50+
gitButton.addEventListener('click', () => {
51+
chrome.tabs.create({ url: 'https://github.com/TomasTNunes/TMDB-Player/tree/master?tab=readme-ov-file#tmdb-player' });
52+
});
4953
});
5054

5155
// Open Bug Report Page
52-
bugButton.addEventListener('click', () => {
53-
window.open('https://github.com/TomasTNunes/TMDB-Player/issues', '_blank');
56+
document.addEventListener("DOMContentLoaded", () => {
57+
bugButton.addEventListener('click', () => {
58+
chrome.tabs.create({ url: 'https://github.com/TomasTNunes/TMDB-Player/issues' });
59+
});
5460
});

webpage/styles.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ body {
8181
max-width: 60%;
8282
text-overflow: ellipsis;
8383
overflow: hidden;
84-
flex: 1; /* Allow the title to take up remaining space */
8584
margin: 0 16px; /* Add some margin to prevent overlap */
8685
cursor: pointer;
8786
}

0 commit comments

Comments
 (0)