diff --git a/Contributors.md b/Contributors.md new file mode 100644 index 0000000..29f5dd1 --- /dev/null +++ b/Contributors.md @@ -0,0 +1,5 @@ +[Zoe](https://smooch.computer) + +[ReimarPB](https://github.com/ReimarPB) + +[sorairolake](https://github.com/sorairolake) \ No newline at end of file diff --git a/fix-paste.js b/fix-paste.js deleted file mode 100644 index 24cf848..0000000 --- a/fix-paste.js +++ /dev/null @@ -1,10 +0,0 @@ -// Whenever there's an event for cut/copy/paste stop the propagation of the event -window.document.addEventListener('cut', function (e) { - e.stopPropagation(); -}, true); -window.document.addEventListener('copy', function (e) { - e.stopPropagation(); -}, true); -window.document.addEventListener('paste', function (e) { - e.stopPropagation(); -}, true); \ No newline at end of file diff --git a/fix-twitter.js b/fix-twitter.js new file mode 100644 index 0000000..4f93ae8 --- /dev/null +++ b/fix-twitter.js @@ -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 diff --git a/manifest.json b/manifest.json index bfc55c9..b1f5185 100644 --- a/manifest.json +++ b/manifest.json @@ -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", @@ -31,7 +31,7 @@ "content_scripts": [ { "matches": ["https://*.twitter.com/*"], - "js": ["fix-paste.js"] + "js": ["fix-twitter.js"] } ], "icons": { diff --git a/popup/info.html b/popup/info.html index b123822..70a1c45 100644 --- a/popup/info.html +++ b/popup/info.html @@ -11,6 +11,6 @@
If the add-on stops working for you, go here for troubleshooting.
If you have an issue that is not mentioned report it here.
GoodTwitter is open-source. Pull requests and contributions are appreciated.
-Coded by Zusor.
+Coded by Zusor and other contributors