Discussions » Creation Requests

[Request] Blogs Reorder

§
Posted: 2017-03-09

[Request] Blogs Reorder

Hi everyone, this is my first request, but I'm hoping someone will take interest.

I'm wondering if there's a way to a script to manipulate elements within Blogger to display the oldest blogs first?

Then it would make reading them in order much more palatable.

Thanks for taking an interest on this.

§
Posted: 2017-03-09

**ADDENDUM**
The sites I"m referring to are ones like Wordpress, Bloggspot, Blogger, etc.

wOxxOmMod
§
Posted: 2017-03-09
Edited: 2017-03-09

Here's a userscript for blogger, but I'm not sure it's better this way because it reverses only within one page.

// ==UserScript==
// @name           Blogger chronological
// @description    Display posts on Blogger in chronological order
// @version        1.0.0
// @author         wOxxOm
// @namespace      wOxxOm.scripts
// @license        MIT License
// @match          *://*.blogspot.com/*
// @include        /https?:\/\/[^\/]*?\.blogspot\.com\.\w+\/.*/
// @run-at         document-start
// @require        https://greasyfork.org/scripts/12228/code/setMutationHandler.js
// ==/UserScript==

setMutationHandler('.blog-posts', container => {
    container = container[0];
    setMutationHandler({
        selector: '.date-outer',
        target: container,
        processExisting: true,
        childList: true, // nonrecursive
        handler: posts => {
            const first = container.firstElementChild;
            posts.filter(p => !p.__chronological).reverse().forEach(p => {
                p.__chronological = true;
                container.insertBefore(p, first);
            });
        }
    });
    return false;
});
§
Posted: 2017-03-09
Edited: 2017-03-09

Thank you for giving this some attention, I've given your script a try and it doesn't seem to reorder the blogspot page from oldest to newest order.

The site I was testing it on was here if you need a control group. http://yabtb.blogspot.com/search?updated-min=2012-01-01T00:00:00%2B02:00&updated-max=2013-01-01T00:00:00%2B02:00&max-results=39


I also found this tidbit in particular, that may be useful resource? http://yabtb.blogspot.com/2011/09/blogger-posts-chronological-order.html

wOxxOmMod
§
Posted: 2017-03-09
Edited: 2017-03-09

The script works for me on http://yabtb.blogspot.com/ It reverses the order of posts on the page.

Post reply

Sign in to post a reply.