Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Fix #4, #6, #9, and probably everything else too #23

Merged
merged 3 commits into from
Sep 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Contributors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Zoe](https://smooch.computer)

[ReimarPB](https://github.com/ReimarPB)

[sorairolake](https://github.com/sorairolake)
10 changes: 0 additions & 10 deletions fix-paste.js

This file was deleted.

6 changes: 6 additions & 0 deletions fix-twitter.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// simply tell the javascript of the page that we're on an up-to-date version
window.eval(`
Object.defineProperty(navigator, 'userAgent', {
get: ()=>"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0"
})
`) // firefox is weird, if we didn't do this it'd define useragent on a shadow navigator that doesn't show to the website
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Forces your browser to use old twitter.",
"manifest_version": 2,
"name": "GoodTwitter",
"version": "2.0",
"version": "2.1",

"permissions": [
"webRequest",
Expand Down Expand Up @@ -31,7 +31,7 @@
"content_scripts": [
{
"matches": ["https://*.twitter.com/*"],
"js": ["fix-paste.js"]
"js": ["fix-twitter.js"]
}
],
"icons": {
Expand Down
4 changes: 2 additions & 2 deletions popup/info.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ <h3>GoodTwitter</h3>
<p>If the add-on stops working for you, go <a href="https://github.com/ZusorCode/GoodTwitter/blob/master/troubleshooting.md">here</a> for troubleshooting.</p>
<p>If you have an issue that is not mentioned report it <a href="https://github.com/ZusorCode/GoodTwitter/issues">here</a>.</p>
<p>GoodTwitter is <a href="https://github.com/ZusorCode/GoodTwitter">open-source</a>. Pull requests and contributions are appreciated.</p>
<p>Coded by <a href="https://twitter.com/ZusorOW">Zusor.</a></p>
<p>Coded by <a href="https://twitter.com/ZusorOW">Zusor</a> and <a href="https://github.com/ZusorCode/GoodTwitter/blob/master/Contributors.md">other contributors</a></p>
</body>
</html>
</html>
Loading