Unhide everything button
- Joaz Banbeck
- Judan
- Posts: 5546
- Joined: Sun Dec 06, 2009 11:30 am
- Rank: 1D AGA
- GD Posts: 1512
- Kaya handle: Test
- Location: Banbeck Vale
- Has thanked: 1080 times
- Been thanked: 1434 times
Unhide everything button
When looking through threads with lots of hide tages - particularly Malkovich or problem threads - I find myself stopping to click so much that I often lose continuity. I'd like an option to 'read this thread with all hide/spoiler tags open'.
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
-
xed_over
- Oza
- Posts: 2264
- Joined: Mon Apr 19, 2010 11:51 am
- Has thanked: 1179 times
- Been thanked: 553 times
Re: Unhide everything button
I've been asking for this for a long, long time.
I really hate hide tags !!
I really hate hide tags !!
- Jordus
- Site Admin
- Posts: 1125
- Joined: Fri Dec 04, 2009 6:06 pm
- Rank: KGS 9k
- GD Posts: 0
- Universal go server handle: Jordus
- Location: Allegan, MI, USA
- Has thanked: 16 times
- Been thanked: 116 times
- Contact:
Re: Unhide everything button
This sounds like a good concept... I am just unsure if it is feasible... I'll have to look into it. Hopefully I will be able to dedicate some time to this kind of stuff now that school is out.
I'm thinking...
- Dusk Eagle
- Gosei
- Posts: 1758
- Joined: Tue Apr 20, 2010 4:02 pm
- Rank: 4d
- GD Posts: 0
- Has thanked: 378 times
- Been thanked: 375 times
Re: Unhide everything button
This is definitely feasible, as I was working on a greasemonkey script last night to do it. I've already finished the javascript function to show/hide all text, the only part that was taking a while was learning how to use greasemonkey to add a link to the page to call the function. I should have it done tonight, unless Jordus gets this added to the site quicker.
We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
- Jordus
- Site Admin
- Posts: 1125
- Joined: Fri Dec 04, 2009 6:06 pm
- Rank: KGS 9k
- GD Posts: 0
- Universal go server handle: Jordus
- Location: Allegan, MI, USA
- Has thanked: 16 times
- Been thanked: 116 times
- Contact:
Re: Unhide everything button
I was going to try to look at it tonight, but seems like you beat me to it. Nice Job DuskEagle! 
I'm thinking...
- Dusk Eagle
- Gosei
- Posts: 1758
- Joined: Tue Apr 20, 2010 4:02 pm
- Rank: 4d
- GD Posts: 0
- Has thanked: 378 times
- Been thanked: 375 times
Re: Unhide everything button
Well, getting it added to the main site is probably better long run, but my solution will work if you're using Firefox.
1) Install Greasemonkey.
2) Goto http://userscripts.org/scripts/show/104122 and click install. When you load a page, a link will appear on the top right of the page, next to the "Previous Topic | Next Topic" menu, to open all hide tags on a page. Clicking again will close all the hide tags on that page.
The actual code for opening all hide tags is below, but it doesn't seem to work for Chrome (haven't tested on other browsers yet). I might look into making this code compatible with all browsers tomorrow if no else does first - then someone could just take it and easily add it to the site.
1) Install Greasemonkey.
2) Goto http://userscripts.org/scripts/show/104122 and click install. When you load a page, a link will appear on the top right of the page, next to the "Previous Topic | Next Topic" menu, to open all hide tags on a page. Clicking again will close all the hide tags on that page.
The actual code for opening all hide tags is below, but it doesn't seem to work for Chrome (haven't tested on other browsers yet). I might look into making this code compatible with all browsers tomorrow if no else does first - then someone could just take it and easily add it to the site.
Code: Select all
// Show/hide text within hide tags.
//Checks whether the first hide tag on a page is open or closed, and flips all hide tags to be the opposite of whatever state the first hide tag was in.
function showhide() {
var hidebuttons = document.getElementsByClassName('button2 btnlite');
if (hidebuttons[0].parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display != '') {
for (i=0; i < hidebuttons.length; i++){
hidebuttons[i].parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = '';
hidebuttons[i].innerText = '';
hidebuttons[i].value = 'Hide';
}
}
else {
for (i=0; i < hidebuttons.length; i++){
hidebuttons[i].parentNode.parentNode.getElementsByTagName('div')[1].getElementsByTagName('div')[0].style.display = 'none';
hidebuttons[i].innerText = '';
hidebuttons[i].value = 'Show';
}
}
return void (0);
}We don't know who we are; we don't know where we are.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.
Each of us woke up one moment and here we were in the darkness.
We're nameless things with no memory; no knowledge of what went before,
No understanding of what is now, no knowledge of what will be.