Skip to content

Commit

Permalink
fix disappearing load more button
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Aug 26, 2022
1 parent 7b3b280 commit 4593333
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ This extension doesn't add any CSS on top of original Twitter. It's fully origin

## Features
- Basically almost all of Twitter functionality is implemented
- Custom profile links supported
- You can also change custom profile link and it'll appear for other extension users (priority: oldtwitter color db -> twitter color db -> default color)
- Custom profile link colors supported
- You can also change custom profile link color and it'll appear for other extension users (priority: oldtwitter color db -> twitter color db -> default color)
- Ability to change default link color and font, enable/disable Twemoji, disable stars (favorites) back to likes (hearts)
- Ability to show custom user link colors in timeline
- Dark mode support
Expand Down
3 changes: 3 additions & 0 deletions layouts/header/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1224,4 +1224,7 @@ input, textarea {
.tweet-view {
border-right: none !important;
border-left: none !important;
}
.timeline-more {
margin-bottom: -10px;
}
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Old Twitter Layout (2022)",
"description": "A new extension that returns old Twitter's look.",
"version": "1.5.1",
"version": "1.5.2",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down
8 changes: 8 additions & 0 deletions pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,14 @@ copyDir('./', '../OldTwitterFirefox').then(async () => {
fs.unlinkSync('../OldTwitterFirefox/ruleset.json');
fs.unlinkSync('../OldTwitterFirefox/pack.js');
fs.unlinkSync('../OldTwitterTempChrome/pack.js');
if(fs.existsSync('../OldTwitterTempChrome/_metadata')) {
fs.rmdirSync('../OldTwitterTempChrome/_metadata', { recursive: true });
fs.rmdirSync('../OldTwitterFirefox/_metadata', { recursive: true });
}
if(fs.existsSync('../OldTwitterTempChrome/.github')) {
fs.rmdirSync('../OldTwitterTempChrome/.github', { recursive: true });
fs.rmdirSync('../OldTwitterFirefox/.github', { recursive: true });
}

let layouts = fs.readdirSync('../OldTwitterFirefox/layouts');
for (let layout of layouts) {
Expand Down
1 change: 1 addition & 0 deletions scripts/tweetviewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class TweetViewer {
this.mainTweetLikers = this.pageData[path].mainTweetLikers;
this.seenReplies = [];
this.tweets = [];
this.container.getElementsByClassName('timeline-more')[0].hidden = !this.cursor;
let tl = document.getElementsByClassName('timeline')[0];
tl.innerHTML = '';
for(let i in this.pageData[path].tweets) {
Expand Down

0 comments on commit 4593333

Please sign in to comment.