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

Commit

Permalink
Merge pull request #23 from no-boot-device/master
Browse files Browse the repository at this point in the history
Fix #4, #6, #9, and probably everything else too
  • Loading branch information
zusorio authored Sep 19, 2019
2 parents 004057f + 715f76d commit 4bcfb26
Show file tree
Hide file tree
Showing 7 changed files with 618 additions and 14 deletions.
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

0 comments on commit 4bcfb26

Please sign in to comment.