๐ŸŽ‰ Happy 19th Birthday to Danbooru! ๐ŸŽ‰
Danbooru

Tags in URL of Posts

Posted under Bugs & Features

Is there a way to disable having the tags being in the URL of view a post? Like for example: post #1659042 . I'm referring to the "?tags=reisen_udongein_inaba" part of the URL. It can really clutter up my history.

I wanted to check http://userscripts.org/ first but they're down at the moment, and searching for previous posts about this is a pain due to how ambiguous the keywords can be.

But you need that for the tag slideshow...

Whatever, this Javascript will remove the tags bit for links to posts:

var tagList = document.evaluate( "//a[contains(@href,'/posts/') and contains(@href,'?tags=')]", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null );
for( var i = 0; i < tagList.snapshotLength; i++ )
	tagList.snapshotItem(i).href = tagList.snapshotItem(i).href.replace(/\?tags=.*/,'');
1