Skip to content

Commit

Permalink
Merge pull request #6 from joseguilherme-dev/v1.1.0
Browse files Browse the repository at this point in the history
Merging v1.1.0
  • Loading branch information
José Guilherme Fernandes Moura committed Oct 26, 2021
2 parents 17a5465 + 1f90178 commit 3ac8fbb
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 35 deletions.
2 changes: 0 additions & 2 deletions Fix-Youtube-Date-Bug/jquery-3.4.1.min.js

This file was deleted.

9 changes: 4 additions & 5 deletions Fix-Youtube-Date-Bug/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"manifest_version": 2,
"manifest_version": 3,

"name": "Fix Youtube Date Bug",
"version": "1.0.0",
"description": "a simple way to fix a youtube bug which the date does not show up at videos.",
"version": "1.1.0",
"description": "The easiest way to solve the currently unsolved Youtube Date Bug. Read more: github.com/joseguilherme-dev/Fix-Youtube-Date-Bug",

"content_scripts": [{
"js": ["jquery-3.4.1.min.js", "script.js"],
"js": ["script.js"],
"matches": ["https://www.youtube.com/*"]
}]

}
35 changes: 30 additions & 5 deletions Fix-Youtube-Date-Bug/script.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
window.addEventListener('load',
function() {
$("#date").remove().insertAfter($("#owner-sub-count"));
$("#date").find("span").remove();
}, false);
window.onload = function() {
/*
* [HOW IT WORKS:]
* The easiest trick to solve the youtube hidden date bug is simply by
* taking the date off the origin position and repositionating it in another
* visible position.
*
* That's all what the code below is going to do.
*/

// Get the text from the date element:
var date_element = document.getElementById('info-strings')
var date_element_text = date_element.innerText || date_element.textContent
// Create a new element (sure, containing our date and a beautifier YT CSS class):
var new_element = document.createElement("p")
new_element.setAttribute("class", "ytd-video-owner-renderer");
new_element.textContent = date_element_text
// Get the element where we want to put the new element after and append it:
var after_element = document.getElementById('owner-sub-count')
after_element.appendChild(new_element);
// Cleans the page by removing the old date element from where it was.
date_element.remove()

/* ------------------------------ ENJOYED IT? <3 ----------------------------------- */
/* You can help me pay my bills and stay alive by just starring this project at my */
/* github profile: */
/* */
/* REPO: https://github.com/joseguilherme-dev/Fix-Youtube-Date-Bug */
/* -------------------------- ************************** --------------------------- */
};
14 changes: 0 additions & 14 deletions INSTALL.md

This file was deleted.

46 changes: 37 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,31 +1,59 @@
# Fix Youtube Date Bug

### About the bug and it's fixing.
## Description:

There is a youtube bug which makes the date of the video does not show up.
Have you ever opened up some Youtube video and the publication date does not appears to you?

Basically the date appears by zooming out the page to 80% or 70%.
TeamYoutube pronunciated themselves saying they already fixed it on **9/26/19** (https://support.google.com/youtube/thread/13826560?hl=en) but it seems not to be true.
Depending of the resolution of your screen and the browser, that can happen and **it's a bug**!

This simple extension can fix that for you, how about trying it out?

It's **easy to install** and **lightweight** *(4kb)*.

---

## Download and Installing:

It's a simple Chrome Extension, published in Google's official Chrome Web Store. The installing process is exactly the same for any Chrome Extension, you just need to download and it will probably be installed automatically in a few seconds.

<h3><a href="https://chrome.google.com/webstore/detail/fix-youtube-date-bug/ndolkhbfggdofgfeenlppkffjfgmcppe/" target='_blank'>Download and install by clicking here.</a></h3>



```
PLEASE! If you enjoyed it, do not forget to ⭐ STAR ⭐ my project by clicking in the star icon on this repository, this help me keep working with my full heart! <3
```

---

## More information about the bug and how this Extension works:

There is a Youtube bug going on which is responsible for making the date of youtube videos does not show up as it was intended to do.

Depending on browser and monitor resolution, the publication date is not going to show up.

Basically, everyone can solve that bug without a extension, all you need to do is to zoom out the page to 80% or 70% in your browser [`CTRL + Mouse Wheel UP`].

TeamYoutube pronunciated themselves by saying that they already fixed it on **9/26/19** (https://support.google.com/youtube/thread/13826560?hl=en), but **that story is not true**.

Here's an screenshot I took on **10/29/19:**

![](Screenshots/Screenshot_1.png)

The date clearly does not show up.

When zoomed out to 80% the date appears:
When the browser is zoomed out to 80%, then the date appears:

![](Screenshots/Screenshot_2.png)

A lot of people is relating the same problem (https://www.reddit.com/r/youtube/comments/d25pl1/bug_youtube_removed_upload_date/).
There is a simple way to fix it.
A lot of people is relating the same problem in every part of the internet [`FOR EXAMPLE: https://www.reddit.com/r/youtube/comments/d25pl1/bug_youtube_removed_upload_date/`].

It's just needed to change where in the page the date shows up, which for this I made an Chrome Extension to do it automatically whenever some Youtube video page is loaded:
The easiest way to solve this headache is to change the publication date position in the page layout whenever *any* Youtube video page is loaded:

![](Screenshots/Screenshot_3.png)

Zoomed out, same effect:

![](Screenshots/Screenshot_4.png)

### Check out INSTALL.md file to learn how to install this extension.
**That's what this extesion does.**

0 comments on commit 3ac8fbb

Please sign in to comment.