Step 1: Get a Userscript ManagerIf you have Firefox, download the https://addons.mozilla.org/addon/mtf/.If you have Chrome, download the https://chrome.google.com/webstore/detail/minimal-tetris-friends/jmcfgfebjmfodjnmgicmkpkbpbfelhki.If you have Opera, download the https://addons.opera.com/extensions/details/minimal-tetris-friends/.

If you have Edge, get https://www.microsoft.com/store/apps/9NBLGGH5162S.If you have Safari, get https://safari.tampermonkey.net/tampermonkey.safariextz.

Step 2 (Edge and Safari only): Get the scriptGo to https://raw.githubusercontent.com/morningpee/mtf/4.9.7/mtf.user.js. A dialog will pop up, click accept, and the script is installed.

How to useVisit the http://www.tetrisfriends.com/games/Live/game.php, and the script will do the rest. The DAS URL hack does work with this.

What it should look likeWithout the script installed, it will look something like this:http://i.imgur.com/08BJLH4.png

If the Minimal Tetris Arena script works, the page will look like this:http://i.imgur.com/RL8nTBB.png

Posted by: dotamistern Dec 21 2013, 10:49 PM

Posted by: Intendant Dec 22 2013, 12:37 AM

When i have it activated, my site doesn't load at all D: only backround :/

Posted by: djackallstar Dec 22 2013, 01:41 AM

QUOTE(Intendant @ Dec 22 2013, 12:37 AM)

When i have it activated, my site doesn't load at all D: only backround :/

same herehttp://i.imgur.com/47MSSIw.png

but if I do this:

var bodyStr=...;alert('aaa'); // wait a couple of seconds...(the following unchanged)

then the script works; the Flash object is a little too high, though.http://i.imgur.com/FJ0crk6.png

Posted by: morningpee Dec 22 2013, 02:05 AM

QUOTE(Intendant @ Dec 22 2013, 12:37 AM)

When i have it activated, my site doesn't load at all D: only backround :/

I just uploaded http://userscripts.org/scripts/show/186531. If you install that, it should work now. Still working on the Opera fix.

Posted by: morningpee Dec 22 2013, 05:01 AM

Fixed the extension for Opera, the script should now be running correctly in all browsers. See the first post for links.

Posted by: Intendant Dec 22 2013, 03:35 PM

awesome work man keep it up

Posted by: morningpee Dec 23 2013, 04:40 PM

For anyone who has tried Minimal Tetris Arena, do you think it should also set the Flash quality to low, to reduce lag even further? The version of this script that I use (not the current public version) does do this, and it makes all the games on Tetris Friends run like a dream. However, the "low" Flash quality setting also makes everything look like poop. Thoughts?

Posted by: Alexsweden Dec 23 2013, 05:38 PM

QUOTE(morningpee @ Dec 23 2013, 05:40 PM)

For anyone who has tried Minimal Tetris Arena, do you think it should also set the Flash quality to low, to reduce lag even further? The version of this script that I use (not the current public version) does do this, and it makes all the games on Tetris Friends run like a dream. However, the "low" Flash quality setting also makes everything look like poop. Thoughts?

Yes! I dont care what it looks like as long as its fast!

Great work btw! I love it!

Posted by: morningpee Dec 23 2013, 07:46 PM

QUOTE(Alexsweden @ Dec 23 2013, 05:38 PM)

Yes! I dont care what it looks like as long as its fast!

Great work btw! I love it!

Okay, I've updated it to set the Flash quality to "low", to decrease lag even further. Also, the Opera extension now works in Opera 18.

Thanks for the support, everyone!

Posted by: djackallstar Dec 24 2013, 02:32 AM

QUOTE(morningpee @ Dec 21 2013, 05:08 PM)

How to installStep 1: Get a Userscript ManagerIf you have Chrome, get https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo.If you have Firefox, get https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/If you have Opera, you can skip this step.

For Fx/Iceweasel users, install any of these: ((1)'s been mentionsed in the quote):(1) Greasemonkey: https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/(2) Scriptish: https://addons.mozilla.org/en-US/firefox/addon/scriptish/(3) Lubemonkey: https://addons.mozilla.org/en-US/firefox/addon/lubemonkey/

Both (2) and (3) are forks of (1), and they claim to have superior performance to (1) in some aspects.

Furthermore, you might also want to remove CSS, JS, images, or other annoyanceshttps://www.squarefree.com/bookmarklets/zap.html

There are no images or CSS left on the page from the original Tetris Friends code. I added the background back in for ćsthetics, which shouldn't affect performance. I suppose there are still a few JS listeners still on the page if you don't use AdBlock. I'll do something about that in the next update, thanks for the suggestion.

Posted by: MuchoExito Dec 25 2013, 12:14 AM

Thx you morningpee

Posted by: SirJeivus Mar 26 2014, 01:37 AM

I saw this thread a while ago but didn't try out the Adblock Plus until last week. I have to say it made huge changes with my TF performance. I was able to break my TF sprint record by more than a second thanks to you, so I wanted to give you my formal thanks.

32.22s to 31.19!

Posted by: morningpee Mar 26 2014, 08:25 PM

New version released today (2.10)! The update now includes:• Minimal versions of Ultra and Sprint• Opera support

QUOTE(SirJeivus @ Mar 26 2014, 01:37 AM)

I saw this thread a while ago but didn't try out the Adblock Plus until last week. I have to say it made huge changes with my TF performance. I was able to break my TF sprint record by more than a second thanks to you, so I wanted to give you my formal thanks.

32.22s to 31.19!

Glad it worked out for you!

Posted by: FelipeMayrink Mar 26 2014, 09:33 PM

QUOTE(morningpee @ Mar 26 2014, 08:25 PM)

New version released today (2.10)! The update now includes:• Minimal versions of Ultra and Sprint

When I finish a game of Sprint or Ultra I get this:http://i.imgur.com/iXE3IAV.png

Though when playing and when I load the page it works fine. Help? Or do I actually need to manually refresh the page?

Posted by: morningpee Mar 26 2014, 09:38 PM

QUOTE(FelipeMayrink @ Mar 26 2014, 09:33 PM)

When I finish a game of Sprint or Ultra I get this:Though when playing and when I load the page it works fine. Help? Or do I actually need to manually refresh the page?

Tetris Friends still records your game, so if you get a daily or all-time high score, it will save it. MTF's next update will add the replayer back in after the game finishes, though you do get a blank page for now.

Posted by: djackallstar Mar 27 2014, 12:17 AM

QUOTE(morningpee @ Mar 27 2014, 04:25 AM)

New version released today (2.10)! The update now includes:• Minimal versions of Ultra and Sprint• Opera support

I inserted it directly into the bottom of MTF and it doesn't work.Not sure why, because unsafeWindow.document.getElementById('contentFlash') isn't null.

Feature Requests1. Instead of adding the replay player back, would you please add a flag in the script for the user to choose between 'show the replay player' and 'continue the next game without asking'? I'm kinda lazy to click the 'play again' button every time I finish a sprint, and due to my crappy Internet connection, refreshing the page is a little bit too slow.

Posted by: Aaron Mar 27 2014, 06:50 AM

This script is great.

Posted by: Blink Mar 27 2014, 06:54 AM

I used this today. It works.

Posted by: jkwon23 Mar 30 2014, 04:30 AM

I cut 2 seconds off my sprint time!

32.?? - > 30.64

Thanks, morningpee!

Posted by: unpronuncyashun2 Mar 30 2014, 08:55 AM

This actually helps quite a lot, my pieces stopped teleporting and I made way less MDs than vanilla TF. Thanks morningpee

Posted by: Donorgyll May 15 2014, 12:50 PM

Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!

Posted by: djackallstar May 15 2014, 02:36 PM

QUOTE(Donorgyll @ May 15 2014, 08:50 PM)

Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!

One can still access USO thru port 8080.

http://userscripts.org:8080/scripts/source/186531.user.js

Posted by: morningpee May 15 2014, 02:52 PM

QUOTE(Donorgyll @ May 15 2014, 12:50 PM)

Userscripts is down at the moment, is it possible for you to re-host it somewhere else? I would really appreciate it!

Sure. The links should work now, or click http://userscripts.org:8080/scripts/show/186531.

QUOTE(djackallstar @ May 15 2014, 02:36 PM)

One can still access USO thru port 8080.

http://userscripts.org:8080/scripts/source/186531.user.js

Nifty!

Posted by: pwn_by_numbers May 22 2014, 08:32 AM

I did a quick hack that makes the results page show up for Sprint and Ultra, it doesn't look very pretty though. (Looks like the styling depends on some elements that were removed, I tried to fix it, but didn't have much luck.)

http://pastebin.com/zbEsDNVU

Posted by: djackallstar May 22 2014, 10:17 AM

QUOTE(pwn_by_numbers @ May 22 2014, 04:32 PM)

I did a quick hack that makes the results page show up for Sprint and Ultra ...

Just compiled an incomplete but more thorough list of swf files to be included in MTF.

Posted by: djackallstar Jun 8 2014, 04:22 AM

userscripts.org is completely down, but fortunately someone has set up a mirror site. To download morningpee's script, visit http://userscripts-mirror.org/scripts/show/186531.html

Posted by: morningpee Jun 21 2014, 05:12 PM

Userscripts.org is back up http://userscripts.org:8080/scripts/show/186531.

Posted by: shirousabers Jun 23 2014, 10:14 AM

Pro knux is pro

Posted by: shirousabers Sep 18 2014, 09:44 AM

morning is the userscript down again ? i accidentally removed the userscript from my chrome....and i could not install tamper monkey somehow i did it manually dragging the userscripts to chrome extension but it is not working .. can u help me ?

Posted by: morningpee Sep 18 2014, 04:20 PM

QUOTE(shirousabers @ Sep 18 2014, 09:44 AM)

morning is the userscript down again ? i accidentally removed the userscript from my chrome....and i could not install tamper monkey somehow i did it manually dragging the userscripts to chrome extension but it is not working .. can u help me ?

For now, you can download it http://userscripts-mirror.org/scripts/show/186531.html.

Posted by: shirousabers Sep 20 2014, 07:28 AM

these are the screenshot...

Posted by: morningpee Sep 20 2014, 07:45 PM

Read https://productforums.google.com/forum/#!topic/chrome/2AvdDgSJY08 post. It could be a lot of things.

Posted by: officegunner Sep 21 2014, 10:36 PM

Gj mp! ur da MVP! love it!

-officegunner

Posted by: pwn_by_numbers Oct 16 2014, 01:06 AM

The script stopped working for me, so I developed a fix. The problem was that the script sets an event to trigger when the page is finished loading, but the page was loading faster than the script was injected for me. The fix just checks if the page is loaded, runs the code if it is, and if not, injects the code like before.

Update here: http://pastebin.com/NturQkuq

Posted by: djackallstar Oct 16 2014, 10:28 AM

QUOTE(pwn_by_numbers @ Oct 16 2014, 09:06 AM)

The script stopped working for me, so I developed a fix. The problem was that the script sets an event to trigger when the page is finished loading, but the page was loading faster than the script was injected for me. The fix just checks if the page is loaded, runs the code if it is, and if not, injects the code like before.

Update here: http://pastebin.com/NturQkuq

I don't know what you were trying to do, but from what you described, I think simply adding one line to the metadata block is gonna solve the problem.

CODE

// @run-at document-start

Posted by: morningpee Oct 16 2014, 10:48 AM

If you are using Chrome, you can use the https://chrome.google.com/webstore/detail/minimal-tetris-friends/jmcfgfebjmfodjnmgicmkpkbpbfelhki instead. Make sure you disable the userscript. Extensions for other browsers to come.

Posted by: Note Mar 2 2015, 03:19 PM

..For some reason I'm still getting lag, despite the extension working for Chrome.. >_< I think it might be the laptop itself, seeing how other programs tend to lag a little and not just Tetris Friends..

Posted by: morningpee Jun 24 2015, 10:20 AM

https://greasyfork.org/en/scripts/10604-minimal-tetris-friends is out! This changes the rendering (wmode) to "direct", which may speed things up a bit more.

QUOTE(djackallstar @ Oct 16 2014, 10:28 AM)

QUOTE(pwn_by_numbers @ Oct 16 2014, 09:06 AM)

The script stopped working for me, so I developed a fix. The problem was that the script sets an event to trigger when the page is finished loading, but the page was loading faster than the script was injected for me. The fix just checks if the page is loaded, runs the code if it is, and if not, injects the code like before.

Update here: http://pastebin.com/NturQkuq

I don't know what you were trying to do, but from what you described, I think simply adding one line to the metadata block is gonna solve the problem.

CODE

// @run-at document-start

Thanks, added.

Posted by: molleyk Jun 28 2015, 05:59 PM

whoa super cool

Posted by: morningpee Apr 28 2016, 05:53 PM

MTF is now on github!

https://github.com/morningpee/minimal-tetris-friends

If anything isn't working for you, post here or https://github.com/morningpee/minimal-tetris-friends/issues.

Posted by: morningpee Aug 2 2016, 07:33 AM

I am not 100% sure that this version is faster for everyone. If it gives you trouble, you can still use https://github.com/morningpee/mtf/raw/4.0.1/Minimal%20Tetris%20Friends.user.js.

More info: MTF now uses a smaller region to render the Live/Ultra/Sprint flash game and scales it back to normal size using a CSS transformation. This means that we lose the "direct" wmode that draws flash straight to the display, but the net effect may still be faster because modern browsers make more efficient use of 3D graphics acceleration.

Edit: Chrome breaks the script. I rolled it back until we have a solution for Chrome.

Posted by: morningpee Sep 15 2016, 04:08 AM

There are some big lag improvements on the Firefox version stemming from in-Flash downscaling and modern canvas hardware acceleration. The Chrome bug that keeps this from working in Pepperflash affects Opera as well, so Firefox is the only browser that can take advantage of this right now.

If you use Firefox and want to play around with it, here it is.

https://github.com/morningpee/mtf/raw/4.2.5/mtf.user.js

Posted by: Danieru Sep 15 2016, 11:57 AM

QUOTE(morningpee @ Sep 15 2016, 04:08 AM)

There are some big lag improvements on the Firefox version stemming from in-Flash downscaling and modern canvas hardware acceleration. The Chrome bug that keeps this from working in Pepperflash affects Opera as well, so Firefox is the only browser that can take advantage of this right now.

If you use Firefox and want to play around with it, here it is.

https://github.com/morningpee/mtf/raw/4.2.5/mtf.user.js

Firefox, the best browser ever, after trying the updated mtf I can confirm it works slightly better than earlier versions of the script, but at a cost of visuals...

Posted by: pwn_by_numbers Sep 23 2016, 08:25 AM

Morningpee, can you add an option to turn off the automatic-scaling? After years of playing it at the normal size it's super disconcerting.

Posted by: Spiritas Sep 23 2016, 12:30 PM

QUOTE(pwn_by_numbers @ Sep 23 2016, 08:25 AM)

Morningpee, can you add an option to turn off the automatic-scaling? After years of playing it at the normal size it's super disconcerting.

Yeah adding that option would be great, full screen makes the game be at a terrible scale and adjusting the window size seems to introduce lag.

Posted by: morningpee Sep 24 2016, 02:11 AM

Context: The Chrome extension was updated yesterday.

There were other complains about bugs as well, so the update is totally reverted for now.

Posted by: pointofsid Sep 28 2016, 05:55 AM

Works great. I feel like it has sped up my 40 time lol

Posted by: morningpee Jun 29 2017, 04:38 AM

Features:• Added support for Marathon and Survival modes• Automatic scaling if you make the window smaller (removes a lot of lag). If you make the window larger, the game stays the same size.• Ground-up rewrite of MTF. Using an ad blocker is no longer necessary.• Safari and Microsoft Edge are now included in the instructions.

Posted by: morningpee Jun 29 2017, 02:19 PM

Posted by: morningpee Jul 1 2017, 02:33 PM

Sorry for the spam... the Firefox MTF add-on is now published.

https://addons.mozilla.org/en-US/firefox/addon/mtf/

Posted by: Okey_Dokey Jul 4 2017, 08:58 PM

Since some months, I used the Minimal Tetris Friends extension for Chrome (not the Tampermonkey version) and it worked well. I encountered some issues after the update though. Somehow, I got ranked down to rank 1. Probably, not related to MTF, but this had some weird consequences: When I was in bronze and silver ranks and used MTF, it told me I was rank 1 (500 points), ignored my tunings (DAS/ARR) and didn't show any score/win screens (lines sent & win counter). I deactived MTF and ranked up to platinum again and those issues were fixed (forgot to check gold). However, I still can't leave any room (clicking the Exit Now button does nothing).

Is there a way to use the old version, maybe as Tampermonkey script?

Posted by: morningpee Jul 5 2017, 09:10 PM

QUOTE(Okey_Dokey @ Jul 4 2017, 08:58 PM)

Since some months, I used the Minimal Tetris Friends extension for Chrome (not the Tampermonkey version) and it worked well. I encountered some issues after the update though. Somehow, I got ranked down to rank 1. Probably, not related to MTF, but this had some weird consequences: When I was in bronze and silver ranks and used MTF, it told me I was rank 1 (500 points), ignored my tunings (DAS/ARR) and didn't show any score/win screens (lines sent & win counter). I deactived MTF and ranked up to platinum again and those issues were fixed (forgot to check gold). However, I still can't leave any room (clicking the Exit Now button does nothing).

Thanks for this, and you are not the only one who has reported this problem. I updated all of the browser extensions to just copy the flash movie from Tetris Friends into MTF, and to let all the Tetris Friends scripts load before starting MTF (the way it used to be). https://chrome.google.com/webstore/detail/jmcfgfebjmfodjnmgicmkpkbpbfelhki for Chrome.

QUOTE(Okey_Dokey @ Jul 4 2017, 08:58 PM)

Is there a way to use the old version, maybe as Tampermonkey script?

If the above doesn't work for you, https://greasyfork.org/scripts/10604-minimal-tetris-friends/code/Minimal%20Tetris%20Friends.user.js?version=58496&d=.user.js of the userscript exists.

As a side note, MTF now support replays for single-player modes. If you top out or finish a game, the replay will be shown after a few seconds.</unrelated>

Posted by: morningpee Jul 6 2017, 12:38 AM

Checked with a user who had Okey_Dokey's problem. https://chrome.google.com/webstore/detail/jmcfgfebjmfodjnmgicmkpkbpbfelhki (4.5.​8) fixes it.

Posted by: Okey_Dokey Jul 6 2017, 05:06 AM

Thanks for the quick fix. Also seems to work for me.

Posted by: morningpee Jul 15 2017, 02:59 PM

MTF 4.7.1 http://harddrop.com/forums/index.php?showtopic=5597.

New features:• Block the big ads on the homepage and uBlock Origin doesn't block• Supports all game modes• Replayer for all modes (all modes that have a replayer, at least)

Posted by: SmartS101 Jul 16 2017, 03:41 AM

Now I don't want to sound like I'm complaining too much about a good thing, but instead of the error message that pops up when you're on a firefox/chrome browser that has Flash disabled by default, could you have MTF access that the popup that changes "this site" to allow Flash to run instead of crashing the browser? It'd be nice to just go to tetrisfriends.com and have it work rather than disable the add-on, enable Flash, enable MTF, and then be able to play.

Posted by: morningpee Jul 16 2017, 04:51 PM

QUOTE(SmartS101 @ Jul 16 2017, 03:41 AM)

Now I don't want to sound like I'm complaining too much about a good thing, but instead of the error message that pops up when you're on a firefox/chrome browser that has Flash disabled by default, could you have MTF access that the popup that changes "this site" to allow Flash to run instead of crashing the browser? It'd be nice to just go to tetrisfriends.com and have it work rather than disable the add-on, enable Flash, enable MTF, and then be able to play.

Alright, now if you have flash disabled, it shows a message telling you so. It also handles it when it's "click to play".

Mozilla (and Google) approved the addon unusually quickly this time, so the changes are already live.

Posted by: morningpee Aug 1 2017, 12:28 AM

MTF 4.7.5 http://harddrop.com/forums/index.php?showtopic=5597.

New features:• Downscaling

Downscaling pushes laglessness to its limits by pixelating everything. You will be able to tell the difference, but it sacrifices enough visuals that this feature is options. To enable it:• Click on the "MTF" icon in the top right• Click "Downscale (requires refresh)".• Refresh the page.Update: Downscale no longer requires refresh.

It may take some getting used to, and it's up to you whether it's worth it. If you need to see what's going on (talking to people in Arena), you can always switch back.

Posted by: morningpee Aug 1 2017, 03:14 AM

By Blink's request, the downscale button is now a slider that lets you choose how pixelated the game is. Move the slider all the way to the left to disable downscaling (default).

Posted by: morningpee Sep 17 2017, 04:41 PM

MTF 4.9.7 http://harddrop.com/forums/index.php?showtopic=5597.

Summary of new features since the last time features were announced:

• Press [ to restart the game in single-player game modes (key is adjustable in the options pane). The [ key was chosen because it's right next to P, which pauses the game.• Remove more ads from the home page• Scaling is 1:1 if in arena lobby or between games• Full-screen is an adjustable option now in the options panel