Greasy Fork is available in English.

Tartışmalar » Oluşturma İstekleri

Hide Tumblr Post Types (Photosets)

§
Gönderildi: 27.12.2020

I was hoping someone could write up a script to hide photosets on Tumblr.com. I had found a script on here that used to hide everything but video posts, so something like that, but photosets. Or maybe customizable depending on the user?

Old defunct script: https://greasyfork.org/en/scripts/14301-tumblr-only-videos/code

Thanks to anyone who can help!

§
Gönderildi: 27.12.2020

Please post some link examples of photosets on Tumblr.com

§
Gönderildi: 27.12.2020
Düzenlendi: 27.12.2020

Maybe this modified version of that script will work

// ==UserScript==
// @name Tumblr hide only photosets
// @description Will hide photosets on Tumblr Dashboard
// @namespace maoistscripter
// @version 1.1
// @grant none
// @include https://www.tumblr.com/dashboard
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js
// ==/UserScript==
$(function()
{

var hide = ['photoset'];

$('#posts').bind("DOMSubtreeModified", function()
{
$( "#posts li div" ).each(function( index, element ) {

if (jQuery.inArray($(this).attr('data-type'), hide) !== -1)
{
$(this).remove();
}

});
});
});

§
Gönderildi: 27.12.2020
Düzenlendi: 27.12.2020
Maybe this modified version of that script will work

No, it didn't work :/ I can definitely link examples, but I think it's entirely different if seen from the blog side as opposed to the dashboard, the latter of which is the one I want to be hidden since I don't have a choice but to use the dashboard. You might have to make a dummy Tumblr account to poke around on the dash, since it has changed dramatically from when the old script was made. Or feel free to request anything from me! Thanks!

Photoset example:
https://behindfairytales.tumblr.com/post/187615846915/ladies-of-the-spanish-princess-joanna-of-castille
https://femaleidols.tumblr.com/post/184415988857/marvelous-seulgi

§
Gönderildi: 27.12.2020

Sorry but I won't create a tumblr account just to make the script, hope this works for you

// ==UserScript==
// @name Tumblr hide only photosets
// @namespace hideTumblrphotosets
// @version 0.1
// @description Will hide photosets on Tumblr
// @author hacker09
// @match https://*.tumblr.com/*
// @run-at document-end
// @grant none
// ==/UserScript==

(function() {
'use strict';
var PhotoSets = document.querySelectorAll("[id*='photoset']"); //Get all PhotoSets on the page
for (var i = PhotoSets.length; i--;) { //Starts the for condition
PhotoSets[i].style.display = 'none'; //Hide the PhotoSet
} //Finishes the for condition
})();

§
Gönderildi: 27.12.2020

No, it did not work, but thank you.

§
Gönderildi: 27.12.2020
§
Gönderildi: 28.12.2020

The dashboard (first link)! I can easily avoid going to photo-heavy blogs, but the actual dash is unavoidable and I just want it to be photo/photoset free.

§
Gönderildi: 28.12.2020

Obviously my script wouldn't work, because I didn't make it to work on the dashboard at first

// ==UserScript==
// @name Tumblr hide only photosets
// @namespace hideTumblrphotosets
// @version 0.1
// @description Will hide photosets on Tumblr
// @author hacker09
// @match https://*.tumblr.com/*
// @match https://www.tumblr.com/dashboard
// @run-at document-end
// @grant none
// ==/UserScript==

(function() {
'use strict';
var PhotoSets = document.querySelectorAll("[id*='photoset']"); //Get all PhotoSets on the page
for (var i = PhotoSets.length; i--;) { //Starts the for condition
PhotoSets[i].style.display = 'none'; //Hide the PhotoSet
} //Finishes the for condition
})();

§
Gönderildi: 28.12.2020

Cevap paylaş

Yanıt göndermek için oturum açın.