The Gateway to Computer Science Excellence
402 views

While reading long discussions on many GO questions, many times I’ve to scroll way up to see exact question, or few minor details! I found scrolling up, while leaving discussion, a bit disturbing as it looses the flow of reading. So, I tried to implement YouTube like PIP mode for questions, where question is fixed at one corner. 

I found it useful and convenient than before, so thought it’s better to share!

Steps:

  1. Open console in browser (Right click anywhere and then select ‘Inspect’, a window will open, select ‘Console’ tab there )
  2. Copy and paste following code:

$('.qa-q-view-content').css({'position': 'fixed', 'z-index': '9999', 'top': '2px', 'width': '30%', 'height': '50%', 'right': '2px', 'border': '2px solid black', 'border-radius': '5px'});

 

Here’s how it looks:

 

 

 

posted Jan 1 in Others by Active (1,857 points) | 402 views
19
Like
0
Love
0
Haha
2
Wow
0
Angry
0
Sad

6 Comments

Good Job ! we should have this feature.

Just made an extension for the same! 

https://github.com/PiratedVirus/PiP-mode-for-GO-questions

I always wondered why this feature is not there on GO, but never knew about the PIP mode.  Great job on writing the code and making a Google extension to make things easier :)

https://gateoverflow.in/3831/gate2005-it-68 : Please check this que in pip, any way to modify this ? @PiratedVirus

@Warrior_19 Thanks for pointing it out! I've updated the code to make PIP movable, so that one could drop it anywhere. That should solve this issue. Please repeat all the steps mentioned in this.

@akshayaK Ummm...that's too lengthy question....but there are very few questions of such length! Initially there was resize function but due to new feature of drag/move anywhere, looks like resize function is not working. If I get free time before 3rd Feb, I'll try to fix it.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,662 questions
56,122 answers
193,626 comments
93,023 users