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..c30948f --- /dev/null +++ b/fix-twitter.js @@ -0,0 +1,4 @@ +// simply tell the javascript of the page that we're on an up-to-date version +Object.defineProperty(navigator, 'userAgent', { + get: ()=>"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0" +}) diff --git a/manifest.json b/manifest.json index bfc55c9..91ee17c 100644 --- a/manifest.json +++ b/manifest.json @@ -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..100163e 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.
+