inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 15, 2017 3:53:38 GMT -8
Some context for everyone else, for anyone who may find it useful too. Peter made a short gif for the PB Staff regarding some bugs, and I noticed in it, it showed him resizing his window, and it displayed the resolution size of the window in real time. Like a good Samaritan, I asked him how he did it. Here is his reply, along with mine and another of his.. Stinky666 , Just a little bit of JS I wrote in the console so the size was visible in the recording. $("body").append("<div style='font-size: 11px; background-color: white; position: fixed; top: 40px; left: 10px; padding: 8px; border: 1px solid; width: 150px' id='winfo'>:)</div>");
$(window).on("resize", () => $("#winfo").html("Window Width: " + $(window).width() + "px")); Holy crap on a cracker, that worked! Is there anyway to save it so it will always work on any tab I use it on? Literally so it's always "there", so I don't have to keep inputting it? Or maybe save it to work on a few specific domains, at least? Something as simple as this is so great, since I don't have access to certain screen resolution sizes, so it could be a nice alternative to test how stuff look. <3 you btw Edit: Sorry guys, maybe PM me for this lol. Stinky666 , Either a web extension (bit much just for this though, and would require me to do it for you ) or using something like Greasemonkey / Tampermonkey. Maybe open a new topic (that way others can grab it as well) somewhere and I'll walk you through it. It's really simple. ...and here we are Appreciate the help Peter
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 15, 2017 4:31:37 GMT -8
Got to cook dinner, once done, I'll create something for you. I'll create a web extension. Haven't played with them in a while, so should be fun. Is there anything else you would like for it to show? I was going to consider media rules, but there is an issue with security due to the location of that forum .
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 15, 2017 5:30:40 GMT -8
Got to cook dinner, once done, I'll create something for you. I'll create a web extension. Haven't played with them in a while, so should be fun. Is there anything else you would like for it to show? I was going to consider media rules, but there is an issue with security due to the location of that forum . There is nothing that I can personally think of, but maybe others can?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 15, 2017 8:08:54 GMT -8
So this was simple to do, but had issues with building the extensions. I can't submit to the Chrome store, as it requires a fee now. So what I done was create 2 gifs that show how to install the extension from file for Firefox and Chrome. Download (Save as...): Chrome | FirefoxFor Chrome, you will need to extract the zip to somewhere, then just load the unpacked extension. Reason for this, is otherwise the extension will be disabled on restart. Google want the store to be used instead. GIF: Chrome | FirefoxSource
|
|
Former Member
inherit
guest@proboards.com
225992
0
Nov 23, 2024 10:25:48 GMT -8
Former Member
0
January 1970
Former Member
|
Post by Former Member on Mar 15, 2017 16:25:29 GMT -8
What Peter done was the best way to do it, but as an alternative, you could have created a snippet under the sources panel that would have persisted
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 15, 2017 17:54:18 GMT -8
What are you using to create that GIF Peter ?
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 16, 2017 2:49:27 GMT -8
So this was simple to do, but had issues with building the extensions. I can't submit to the Chrome store, as it requires a fee now. So what I done was create 2 gifs that show how to install the extension from file for Firefox and Chrome. Download (Save as...): Chrome | FirefoxFor Chrome, you will need to extract the zip to somewhere, then just load the unpacked extension. Reason for this, is otherwise the extension will be disabled on restart. Google want the store to be used instead. GIF: Chrome | FirefoxSourceThanks a lot. I read your post/reply before and liked it but only just got round to installing. Works perfectly. I assume inner width and height are the actual website resolutions ? Where as Outer is full window (including bookmarks bar, address bar, scroll bar etc (lots of "bars" lol) ?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 16, 2017 3:22:04 GMT -8
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 16, 2017 3:26:02 GMT -8
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 16, 2017 4:33:42 GMT -8
Excellent, thanks
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 18, 2017 8:16:58 GMT -8
|
|
inherit
Official Code Helper
65613
0
1
Oct 22, 2024 1:56:19 GMT -8
Chris
"'Oops' is the sound we make when we improve"
9,017
December 2005
horace
RedBassett's Mini-Profile
|
Post by Chris on Mar 18, 2017 23:48:56 GMT -8
Thanks Peter, I was asking because this thread kept crashing my FireHD tablet (running Google Chrome) so I suspected the GIF, I haven't had time to rule it out or not just yet but if it is writing some peculiar header I could use one or two images created by that app to test against "normal" 89a. The ShareX looks smoother probably with more frames but if file sizes are comparable then sharex appears to be the choice.
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 19, 2017 4:22:41 GMT -8
Chris , Ah, ok. Sorry if that is the case. Let me know if you figure it out. In the meantime, I'll stop embedding Both are using 89a in the header. Not entirely sure what imgur does to them (I assume it does just basic compression). Both were recorded at the same framerate. File size, ShareX was a lot smaller which was surprising due to the much better quality.
|
|
inherit
Jack of All Trades, Master of None
27090
0
May 30, 2013 20:36:34 GMT -8
Stinky666
8,818
July 2004
stinky666
|
Post by Stinky666 on Mar 22, 2017 23:22:51 GMT -8
Peter, not sure if I keep doing something wrong somehow, but I can load the unpacked version fine, and it works perfect. As soon as I close my browser and load it back up, it has gone, and I have to reload it. It's, as you can imagine, very annoying. Anyway to make it so it stays installed?
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Mar 23, 2017 4:22:41 GMT -8
Stinky666 , If you followed my instructions (unzip, enable dev plugins, load ext.), then it should not disable it. Make sure you watch the GIF I posted. The only thing it should do, is warn you about it when you next open Chrome. If that still doesn't work, then I guess Chrome has changed something very recently. If that is the case, then install Tampermonkey and I'll write a script for that instead.
|
|