285Views30Replies

Author Options:

Viewing all steps by default? Answered

Is there a way to set my preferences so that I can automatically go to the "all steps" view? I never view projects in the one step per page layout, and I'm tired of having to reload the page to get to the view I want, especially when I'm viewing several instructables at a time.

30 Replies

user
fungus amungus (author)2007-02-27

Woot! 10 minutes of coding!

Here's thenew version.

Bang away at it and see if there's still a problem. It now checks for the "id" tag and the "DISCUSS" text.

Select as Best AnswerUndo Best Answer

user
Aeshir (author)fungus amungus2007-03-10

I JUST FOUND A BUG! ALERT ALERT! lol

Well not really. But it puts the ?ALLSTEPS thingy into those instructables image viewer pages.

ie: https://www.instructables.com/id/F6WRLE9ZNGEYYMWJ1Y/index.html?size=ORIGINAL?ALLSTEPS

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)Aeshir2007-03-10

Adding

&& (thisLink.href.indexOf("?size") == -1)

to the if statement will fix that.

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)Aeshir2007-03-10

Add it to the if statement. See how there's two parentheses at the end of the if statement? Add it in between those two. (it would work anywhere within the if statement, but that spot is easy to explain.)

Instructables is going kinda slow for me right now and I'm having some weird stuff happen when I'm testing this change, so let me know if it works correctly for you.

Select as Best AnswerUndo Best Answer

user
Aeshir (author)fungus amungus2007-03-03

(If i'm viewing an RSS feed of Instructables and I click the link to go to the full article it doesn't work.

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Aeshir2007-03-03

What RSS reader are you using?

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)fungus amungus2007-02-28

One thing I changed though, is to set the included pages to "https://www.instructables.com/*" so it'll work on links on user pages as well. But if you do this, you should change it so it tests for "#" rather than "DISCUSS". Otherwise it'll screw up the links to a specific comment, like in the comment tracker.

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Andrew5462007-02-28

Whoops. thought I'd changed the included pages. You have what I meant to do. Didn't know that about the specific comment links. Thanks.

Select as Best AnswerUndo Best Answer

user

All right. The code has been updated. Let me know if there's anything else. When this is solid we should put it up as an instructable.

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)fungus amungus2007-02-28

one other thing I've been trying to fix is that with the constantly rotating links to various featured projects under the "explore" heading on the "You" homepage (and some other places), this will only work with the first batch of links. I've been trying to mess with the setInterval() function to fix this so it constantly updates the allLinks variable, but I can't figure out where to put it.

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Andrew5462007-02-28

Wow... I never click on those. Well, see if you can find some way to fix it. Good luck.

Select as Best AnswerUndo Best Answer

user
Aeshir (author)fungus amungus2007-02-28

I use Opera, and I thought maybe there was a way to do this in it.

How To Use Greasemonkey Scripts In Opera

Turns out you can, and you don't even need GM in the first place. Also it's very easy to do. One step really.

Contemplating if I should make it into an Instructable. Seems more like plaigurism though (it is only one step).

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Aeshir2007-02-28

Well, we can make one instructable to cover both. So in Opera you can use the same script and just plop it in there? That's it? I can start writing something up on Friday or so. I'll make it a collaboration.

Select as Best AnswerUndo Best Answer

user
Aeshir (author)fungus amungus2007-03-03

Opera. It has built in mail, RSS, widgets, IRC chat, tons o crap.

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Aeshir2007-03-03

Can you create a modified RSS feed that auto adds the "?ALLSTEPS"?

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)2007-03-02

I started an instructable with you guys on as collaborators. It's super bare bones right now.

Select as Best AnswerUndo Best Answer

user
Aeshir (author)fungus amungus2007-03-02

Sweet. Thanks. I already have some crap written up unpublished, so i'll be adding it in right after I finish an invoice and crap for this tard who bought these cheap lego trading cards off eBay from me. xD

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)2007-02-26

You can if you have Firefox.

Get Greasemonkey andclick here.

Thanks to zachninme for making it. Original discussionhere.

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)fungus amungus2007-02-26

I <3 firefox. Though it would be nice if this was implemented as an integrated feature of the site

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Andrew5462007-02-26

I believe it's in the todo list. But it's a big list.

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)fungus amungus2007-02-26

Now I've got something I want to change in the script.

It currently applies "?ALLSTEPS" to any link on the explore page, specifically the links to user pages and comments. This is mostly superficial, but its does screw up the comments link (it'll take you to the instructable, but it won't go to the comments.)

What would I need to change to filter out these links?
I believe its this if statement that needs to be changed:

if (thisLink.href.match(/\?/i))

*sigh* I know just enough Java to find the problem, but not enough to fix it. :-(

Select as Best AnswerUndo Best Answer

user
fungus amungus (author)Andrew5462007-02-27

Looks like you'd want to check to see that "id" follows instructables.com and make sure that it doesn't include "#DISCUSS"

So if the link is "https://www.instructables.com/id/E53LXTNKPKEXCFG4K7/" (the lovely tongue one), then strip 29 chars off the beginning and 20 off the end. If that=="id", then attach "?ALLSTEPS"

I'll try it at work tomorrow to look busy.

Select as Best AnswerUndo Best Answer

user

As a side note, why are there 18 alphanumerics in the URL? 'Tis huge!

Select as Best AnswerUndo Best Answer

user
Weissensteinburg (author)2007-02-26

How do i install the script?

Select as Best AnswerUndo Best Answer

user

If you install Greasemonkey, just clicking the link should begin the installation process.

Greasemonkey

Select as Best AnswerUndo Best Answer

user
Aeshir (author)2007-02-26

Likewise. Specially on dial-up.

Select as Best AnswerUndo Best Answer

user
Andrew546 (author)Aeshir2007-02-26

I'm on cable and it still gets on my nerves!

Select as Best AnswerUndo Best Answer