Donmai

Danbooru 2 Issues Topic

Posted under General

This topic has been locked.

Log said:

Alright so I have a question involving the translated tags: How do we handle things like Satan (サタン), there's at least three characters I can think of/see in the pixiv search if not far more.

Maybe I should just make a thread to track these.

I'd just not put those in the other names field at all to avoid erroneous suggestions.

Though do still put them at the top of the wiki page body itself, so people know what they're called.

Log said:

Found some weirdness with using the wiki pages to search.

http://www.pixiv.net/search.php?s_mode=s_tag_full&word=Taromati

http://www.pixiv.net/search.php?s_mode=s_tag&word=Taromati <-- this is where the wiki links.

I'm not sure why the results are different (maybe full includes r-18?) but it's probably worth noting.

You've got it backwards; the wiki links to s_tag_full, not s_tag.

s_tag_full does a search for the exact tag entered ("Taromati"). s_tag is a "partial search", basically a wildcard search, it searches for any tags containing Taromati. I intentionally made the wiki link to the exact one even though the partial one is Pixiv's default search mode.

s_tag_full is unfortunately case-sensitive, even though s_tag isn't. Meaning posts tagged "taromati" won't be returned. To get around this you can put both "Taromati" and "taromati" in the other names.

SciFi said:

I just pulled a weird url from a pixiv thumbnail - looks like the cdn got tweaked.
http://i2.pixiv.net.edgesuite.net/img52/img/0027boss/44591824_m.png
The big image page still points to where you'd expect from looking at it, but it does mean the artist parser is having issues with thumbnail urls. The source data parser is fine with the change.

You sure that's not something from just your end? That image and every other newly uploaded image I've looked at are the same as before, none of that edgesuite.net to be found.

I opted into nothing. If you happen to know where there is an opt out do say because it's getting quite annoying having to remove it every time.

Edit: alternatively, if you know how to modify a user script to filter it out. I'm not having much luck.

Updated

SciFi said:

I opted into nothing. If you happen to know where there is an opt out do say because it's getting quite annoying having to remove it every time.

Edit: alternatively, if you know how to modify a user script to filter it out. I'm not having much luck.

Will sticking this in a user script suffice?

var edgeLink = document.evaluate("//img[contains(@src,'.edgesuite.net/')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for( var i = 0; i < edgeLink.snapshotLength; i++ )
	edgeLink.snapshotItem(i).href = edgeLink.snapshotItem(i).href.replace('.edgesuite.net/','/');

RaisingK said:

Will sticking this in a user script suffice?

Unfortunately not. I've got a post on greasyfork to see if someone with one of the direct linking scripts can help. In the mean time I'm going to dig into having one add a button to the upload page that will edit the url in the source box.

SciFi said:

Unfortunately not. I've got a post on greasyfork to see if someone with one of the direct linking scripts can help. In the mean time I'm going to dig into having one add a button to the upload page that will edit the url in the source box.

i just check github and Toks already fixed this. unless there's a delay you can check this if it works for you, hopefully. (tested in firefox only)

obsolete already
// ==UserScript==
// @name        edgesuite
// @namespace   http://danbooru.donmai.us
// @include     http://*.donmai.us/uploads/new
// @include     https://*.donmai.us/uploads/new
// @version     1
// @grant       none
// ==/UserScript==
 
var button = document.createElement("button");
button.id = "trim-button";
button.type = "button";
button.name = "button";
button.innerHTML = "Trim EdgeSuite";
button.onclick = trimURL;
button.setAttribute("style", "margin-right: 0.4em");
document.getElementById('form').appendChild(button); 

var parent = document.getElementById("form");
var child = parent.getElementsByTagName("div")[2];
var grandchild = child.getElementsByTagName("button")[0];

child.insertBefore(button, grandchild);

function trimURL()
{
    var uSource = document.getElementById('upload_source').value;
    uSource = uSource.replace(/.edgesuite.net/gm, '');
    document.getElementById('upload_source').value = uSource;
}

I couldn't find anything about the issue I'm having, and it's not constant, but Iately I've noticed a decent amount of thumbnails that load as a different image for me.

http://i9.photobucket.com/albums/a87/RdmHyuri/4318bcbe5e45fdd39fb080a5c8d66ce8.jpg

That's the easiest way to show what I mean; the image at the top shows what the thumbnail looks like on the main page (the blonde twintail girl), while everything else seems correct. There doesn't seem to be a pattern though; this happens with old images, new images, png/jpg/gif, parent/child/independent... and I'd say it only happens with 1 in 100 images, but it's really frustrating when I find interesting thumbnails but then cannot get to the actual image.

Any ideas?

Saduharta said:

I couldn't find anything about the issue I'm having, and it's not constant, but Iately I've noticed a decent amount of thumbnails that load as a different image for me.

http://i9.photobucket.com/albums/a87/RdmHyuri/4318bcbe5e45fdd39fb080a5c8d66ce8.jpg

That's the easiest way to show what I mean; the image at the top shows what the thumbnail looks like on the main page (the blonde twintail girl), while everything else seems correct. There doesn't seem to be a pattern though; this happens with old images, new images, png/jpg/gif, parent/child/independent... and I'd say it only happens with 1 in 100 images, but it's really frustrating when I find interesting thumbnails but then cannot get to the actual image.

Any ideas?

Disable any addons/userscript and try again

Does that happen at other websites? I occasionally encountered that at danbooru a few times, but it was always fixed with browser restart, so I thought it was just Opera's bug.

Anyway, since I'm pretty sure none of us can reproduce that, you'd have to examine certain things yourself next time that happens. Namely, does the problem go away when you refresh the page? Can you double-check the wrong thumbnail image source link, or maybe check the page source to make sure danbooru supplies the correct one?

Type-kun said:

Does that happen at other websites? I occasionally encountered that at danbooru a few times, but it was always fixed with browser restart, so I thought it was just Opera's bug.

Anyway, since I'm pretty sure none of us can reproduce that, you'd have to examine certain things yourself next time that happens. Namely, does the problem go away when you refresh the page? Can you double-check the wrong thumbnail image source link, or maybe check the page source to make sure danbooru supplies the correct one?

It at least doesn't happen at Gelbooru, Sankaku, or Yande.re. It doesn't go away with refreshes, closing/opening the browser, restarting the tablet, or clearing the browsing history. I will say if I find a thumbnail that looks like the picture that comes up, it usually takes to the picture I'm looking for it seems, so it does seem to switch things around and not just on one end.

I'll try double checking some source things here though next.

EDIT; Uninstalling and reinstalling the browser fixed it. Wonder what happened -_-

Updated

1 62 63 64 65 66 67 68 69 70 315