SankakuAddon

Adds a few quality of life improvements on Sankaku Channel: Automatic image scaling, scrolling to image, thumbnail icons for loud/animated posts, muting/pausing videos, + - tag search buttons, a tag menu which allows for tagging by clicking, 'Choose/Set Parent' modes, easier duplicate tagging/flagging. Fully configurable through the Addon config.

These are versions of this script where the code was updated. Show all versions.

  • v1.0.11 2024-04-20

    - fix thumbnail icons/fading yet again
    - fix custom style
    - fix post mode click override
    - fix 'hide headerlogo'

  • v1.0.10 2024-03-16

    fix mail notice only on index/visually similar page

  • v1.0.9 2024-03-13

    fix mail notice

  • v1.0.8 2024-03-12

    maybe upload the actual thumbnail fix

  • v1.0.7 2024-03-12

    fix thumbnail icons/fading yet again

  • v1.0.6 2024-01-22

    fix thumbnail icons

  • v1.0.5 2024-01-15

    fix old post tag counts

  • v1.0.4 2023-12-18
    • add back old wiki links and wiki template (it's not dead!)
    • useful beta link for /wiki/new
  • v1.0.3 2023-12-17
    • fix page detection once again
    • fix "useful beta link" feature (red "Beta" link links to the corresponding Beta page)
    • remove a bunch of unused code now that wiki editing is dead
    • wiki pages: tag edit gear ⚙ now links to the tag history, which still has a working tag edit link
    • old chan links: fix some beta links not being turned into chan links
  • v1.0.2 2023-11-11

    allow closing the config dialog by clicking anywhere outside

  • v1.0.1 2023-11-05

    fix issue resolving relative links on the wrong url (fix old wiki/pool/tag links)

  • v1.0.0 2023-10-31
    • enable custom style by default
      • custom style: fix scrollbars appearing on post pages
      • custom style: make parent/child thumbnails vertically compact
      • fix config button position and text box layout
      • fix duplicate flag actions
      • temporarily(?) remove Edit Tags mode
      • restore original tag category collapser style and add a third variant using the site's categories
  • v0.99.99 2023-10-29

    fix error when updating CSS variables on Tampermonkey

  • v0.99.98 2023-10-25

    fix custom style "More popular posts" link position

  • v0.99.97 2023-10-22

    integrate 'Sankaku...Something' userstyle, adding options for a custom grid thumbnail style, adjustable thumbnail size and enlarged navbar

  • v0.99.96 2023-10-22

    fix moderation search template

  • v0.99.95 2023-10-22
    • more page detection fixes and fixed links
    • add option for old style post tag counts (enabled by default)
  • v0.99.94 2023-10-20
    • fix post index and post page detection
    • fix tag edit button sizes
  • v0.99.93 2023-06-18
    • restore wiki / tag edit links on page index for "old wiki" feature
    • fix tag history link on tag edit page
    • fix language code check (jp changed to ja)
  • v0.99.92 2023-06-17
    • fix broken + - tag search buttons
    • change missed book link on post page for "old pools" feature
  • v0.99.91 2023-06-12

    css adjustments for config button

  • v0.99.90 2023-06-11

    add options to use old wiki/tag index/pools wherever possible

  • v0.99.89 2023-06-10

    fix failing fallback for getting post id e.g. when being rate limited (which could corrupt the view history)

  • v0.99.88 2023-02-10

    fix broken "Edit Tags" mode and post editing on deletion page

  • v0.99.87 2023-01-20
    • add experimental option to collect tag color data for use in tag menu
    • adjust config button position
  • v0.99.86 2023-01-17
    • add experimental option to redirect v.sankakucomplex.com to s.sankakucomplex.com
  • v0.99.85 2023-01-17
    • fix ratings icons for dynamically loaded thumbnails
    • remove now redundant file type feature
  • v0.99.84 2023-01-17
    • fix broken post page features
    • fix broken ratings icons
  • v0.99.83 2022-08-14

    fix tag count search links on user profiles and make them ignore posts newer than roughly 2 days (except for your own profile)
    Thanks goes to Evaera

  • v0.99.82 2022-08-14
    • animated/sound icons are disabled by default. when enabled, they replace the site ones.
    • removed compatibility for Galinoa's old userstyle
    • added generaltagcount:<12 and artisttagcount:0 search links to user profiles
    • hotkeys have been rewritten to remove conflicts with the new site hotkeys and to allow binding multiple actions to the same key (e.g. having g and shift+g was previously not possible).
      to accomodate for this, hotkeys will be reset when installing this version
  • v0.99.81 2022-06-07

    v0.99.81:

    • add a confirmation prompt before resetting the settings or post view history
    • change "delete useless_tags when using save button" to not require tag changes and instead always remove it
    • fix tag copy button on deletion page sometimes missing underscores
  • v0.99.80 2022-04-26
    • Beta link works for user profiles
    • make post approver's name link to their profile and add a link to their approved posts
    • add links to flagger's flagged posts
    • make the post tag history link filter by the post id it's opened from
  • v0.99.79 2022-04-25

    rework finding the actions list yet again

  • v0.99.78 2022-04-25

    adjust added user page post links to: flagged, unapproved, tagme, flagger, approver

  • v0.99.77 2022-04-24
    • add "Delete Post" mode
      • Beta link goes from pool to book page
      • fix Hentai Foundry source links so they point to the post instead of the image
      • add direct links to flagged and approved posts to user page
      • moderation page search template removes conflicting search options
      • rework tag menu CSS a bunch, hopefully didn't break anything
      • add highly experimental "Copy/Paste Notes" actions to help transferring translation notes from one post to another
  • v0.99.76 2022-03-21
    • add "Find Similar" mode
      • allow configuring hotkeys for post index (includes all post modes and 10 tag script templates)
      • "Edit Tags" mode uses same colors as "Edit Post" mode
      • deletion page: exact integer multiples resolution check now goes both ways
      • support legacy.sankakucomplex.com
      • fix possibly the last userscript manager incompatibility (post parent Clear button)
  • v0.99.75 2022-03-20
    • workaround fetch() not working with relative URLs on Greasemonkey
      • deletion page: check for md5_mismatch tags too
  • v0.99.74 2022-03-18
  • v0.99.74 2022-03-18

    use localstorage as a replacement for Greasemonkey's missing addValueChangeListener

  • v0.99.73 2022-03-18

    just kidding, now it should be compatible with Greasemonkey...?

  • v0.99.72 2022-03-18
    • the script should now be fully compatible with Greasemonkey again, should
      • rework thumbnail click listener
      • simplify adding mode options
      • improve actions list detection
      • "Edit Tags" mode can be used without tag script permission
      • "delete useless_tags tag" option now works for Edit Tags dialog too
  • v0.99.71 2022-03-17
    • sitefix for a small gap in the darkmode navbar that partially breaks hovering (tab "closes" when mouse touches the gap)
      • thumbnails will now be processed on any page (which covers e.g. the rankings too)
      • viewed posts will not fadeout on the deletion page
      • thumbnail icons will fadeout again
      • fix thumbnail click listener (for the mode stuff) not being applied if thumbnail icons or view history aren't enabled
      • give approve mode a better darkmode color
      • duplicate flagging should now work in Greasemonkey too
      • blonde -> blonde_hair
      • start using more global instead of inline CSS
      • start structuring code around pages
  • v0.99.70 2022-03-15
  • v0.99.70 2022-03-15

    fix thumbnail detection

  • v0.99.69 2022-03-14

    fix tag handling (tag menu and duplicate flagging)

  • v0.99.68 2022-03-09
    • add revision and hasrevisedversion tag buttons
      • deletion page: warn if one post is censored and the other uncensored
      • deletion page: remove text warnings
      • slightly improved tag search buttons, adding a tag will remove the inverse tag from the search
      • a bunch of technical refactoring (e.g. relating to thumbnail modification and tag handling)
  • v0.99.67 2022-03-08
    • use some cyan in the speaker icon to set it apart a little more from the animated icon
      • add "Show both" post border style, which can show "has parent/children" and "unapproved" border at the same time
  • v0.99.66 2022-03-06

    the cursed update:

    • add cool new SVG thumbnail icons!
    • allow editing posts on the deletion page
    • deletion page: add critial tags below their thumbnail (and also check for potential_upscale tag)
    • deletion page: check resolutions for exact integer multiples (potential upscale)
    • make beta link more useful by direct linking to appropriate pages (thanks to Octopus Hugger!)
    • add option for post border style: prioritizing blue "unapproved" over yellow/green "has parent/children" or vice versa
    • select tag script templates using 1-0 hotkeys
    • fix bug where "Edit Tags" mode would resubmit previously submitted data
  • v0.99.61 2022-03-05
    • readd missing thumbnail padding (so thumbnail icons don't jump around)
      • change the modified border color priorities to what it was before
  • v0.99.60 2022-03-04

    apply CSS only after head was loaded

  • v0.99.59 2022-03-04
    • CSS sitefix for partially broken thumbnail and deletion page layout
      • video thumbnails apply to slideshows as well
      • replace duplicate deletion sanity checks with more prominent warnings (not final)
      • add a search template for flagged posts to the moderation page (also not exactly final)
  • v0.99.58 2022-02-28
    • add third-party_edit to the duplicate deletion sanity check as well
      • try fixing scroll to image sometimes being off by a pixel (sadly no guarantee due to subpixel rendering)
      • add a "History »" tag history link to the tag edit page
  • v0.99.57 2022-02-26

    the deletion page update:

    • add a "custom" delete reason for duplicates (which fills out the custom reason field automatically)
    • make custom reason field not tiny
    • add some sanity checks for duplicates (warns when either post is tagged as upscaled, legitimate_variation or revision, also warns of missing duplicate tag)
    • add a copy button to "Tags not present in parent" (which currently only ignores the (potential_)duplicate tag)
    • fix delete hotkey for non-english languages
    • change "addon:" notices to "[addon]"
  • v0.99.56 2022-02-11

    - fix "Edit Tags" edit box closing when clicking tag auto-suggestions
    thanks Bic yet again

  • v0.99.55 2022-02-11
    • read tags for "Edit Tags" mode differently to fix an issue with browser extensions removing the img tag's title field
    • fix "Edit Tags" mode not working on the similar post page
      thanks to BicHD for the solutions!
  • v0.99.54 2022-02-08
    • add "Edit Tags" mode which allows to, well, edit tags right on the main page (though it can't show/edit the parent id, source link and rating/note locks)
    • add preliminary ratings icons (S, Q, E) on post thumbnails (off by default)
  • v0.99.53 2022-02-04

    add tag script presets; a configurable list of tag scripts found below the "Mode" menu

  • v0.99.52 2022-02-04

    allow optional score ("positive", "negative" or "neutral") inside record templates

  • v0.99.51 2022-02-04

    add option to load the original image automatically (off by default), with an optional filesize limit (defaults to 4MB)

  • v0.99.50 2022-02-04

    - fix Galinoa's note fix always being applied when image scaling is disabled
    - fix image scrolling using wrong height value
    - remove image scrolling delay
    - fix flash size detection (lol)

  • v0.99.49 2022-02-03

    add record templates: adds a dropdown to the "Add Record" page which sets the "Reason" textbox to some configurable text

  • v0.99.48 2022-01-21

    only execute note fix for Galinoa's Sankaku Channel Dark on default size (no idea if that still works)

  • v0.99.47 2022-01-21

    fix all issues related to translation notes

  • v0.99.46 2022-01-20
    • add hotkey configuration (currently only for post page hotkeys)
    • add "add translation" hotkey (defaults to t)
  • v0.99.45 2022-01-18

    add alternative category collapser style with category name

  • v0.99.44 2022-01-12

    fix false-positive error on similar post page

  • v0.99.43 2021-12-15

    switch 2 tags around, fix one instance of error logging

  • v0.99.42 2021-12-10

    some changes/fixes to the default tag list like added skin and background colors

  • v0.99.41 2021-12-09

    ctrl-clicking a tag in the tag menu will open the corresponding wiki page

  • v0.99.40 2021-12-09

    fix some missing underscores in the default tags list

  • v0.99.39 2021-11-25

    try to equalize the site's CSS when logged out (it is different from when being logged in), should finally fix the layout breakage when thumbnail icons are enabled

  • v0.99.38 2021-11-25

    revert accidental style changes

  • v0.99.37 2021-11-25

    revert all layout "fixes" since 0.99.33 (issue was caused by temporary site CSS change?)

  • v0.99.36 2021-11-25

    fix layout breakage properly (reverting the hacky workarounds)

  • v0.99.35 2021-11-25
    • apply layout fix to all thumbnails when thumbnail icons are enabled
      • don't fade out thumbnails when post history is disabled
  • v0.99.34 2021-11-24

    attempt to fix layout breakage between browsers when thumbnail icons are enabled

  • v0.99.33 2021-04-27
    • slightly rework async image/action list detection
    • add a small delay to image scrolling
  • v0.99.32 2021-04-26

    fix image scaling when details can't be read (hopefully for real this time)

  • v0.99.31 2021-04-25

    fix image scaling on non-resized posts when not logged in

  • v0.99.30 2021-03-04 add an optional ~ ("or") tag search button, disabled by default
  • v0.99.29 2021-01-16 a new config dialog (unfinished), tag category collapsers can be drag-closed or opened, add option to show file type under post “Details” (enabled by default), add option to move post “Details” to the right of the edit form (disabled by default), “fade out posts” doesn’t fade out box shadow of posts
  • v0.99.28 2021-01-09 change style of collapsed tag category, fix collapser state not being loaded correctly, collapsing a category now affects other open tabs as well
  • v0.99.27 2021-01-08 add tag category collapsers on post pages (needs to be enabled first), add sitefix for broken pixiv links under 'Details'
  • v0.99.26 2021-01-05 fix scroll to center not working properly (regression from 0.99.23), improve image scroll reliability by waiting one animation frame
  • v0.99.25 2020-12-28 fix ViolentMonkey compatibility
  • v0.99.24 2020-12-23 don't fadeout thumbnails on your own uploads or favorites page, cache thumbnail elements (should improve performance of fading out posts 'live')
  • v0.99.23 2020-12-21 translation notes finally scale as well (will work with adding/editing notes but they will appear to 'slide off' your cursor when you move them so I still recommend resetting the image size), add a small 100% original icon, the config menu can now be opened via the usermanager as well (using GM.registerMenuCommand), use GM.addStyle if possible, don't run in iframes
  • v0.99.22 2020-12-19 use GM.set/getValue etc instead of localStorage if possible (this means settings are permanently stored inside the userscript manager and are also shared between idol and chan - except the common tags list and post history, which are separate for each site)
  • v0.99.21 2020-12-18 change 'wiki template' to always show in a separate textarea (so it won't be used as default text on wiki add pages anymore)
  • v0.99.21 2020-12-18
  • v0.99.21 2020-12-18
  • v0.99.21 2020-12-18 select whole line of wiki template via arrow keys as well
  • v0.99.21 2020-12-18 add 'wiki template' option which is text that will be used as default text on wiki add pages and be shown separately on wiki edit pages to be easily copied (using the 'c' hotkey or a button press)
  • v0.99.20 2020-12-17
  • v0.99.20 2020-12-17 experimental option to fade out thumbnails of viewed posts (separate history for chan and idol), fix config dialog not being centered in Chrome (also use scrollbars if too large), 'hide headerlogo' doesn't scroll anymore (unnecessary on modern browsers), a lot more error checking and more precise logging (logging levels), more code modernizations
  • v0.99.19 2020-12-12
  • v0.99.19 2020-12-12 hopefully fix Choose/Set Parent modes not always appearing, add @author field
  • v0.99.18 2020-12-10 try to solve fundamental issue where sitescript has not yet loaded, replace unsafeWindow.Cookie, fix post click event when not logged in, run on /post/index as well
  • v0.99.17 2020-12-09 added DText style buttons to wiki edit pages (they can add, remove or 'extend' styles on selected text), a few optimizations, loading original images shouldn't change the view anymore
  • v0.99.16 2020-12-08 added (maybe too) big default common tags list based on the wiki, changed default tag menu layout to vertically compact, common tags list allows for line breaks (and is resizable), many code style changes (use single-quotes, template strings, arrow functions)
  • v0.99.14 2020-12-05 'modernize' the script a bit, fix post mode resetting for good, darkmode fixes and adjustments (post modes!), always log addon notices to console, remove pool sitefix, postmode hotkeys now work when the dropdown has focus
  • v0.99.13 2020-12-05 added option to delete useless_tags tag when saving (but only if tags were changed)
  • v0.99.12 2020-12-04 slighty better compatibility, should now fully work in Violentmonkey as well
  • v0.99.11 2020-12-03 rudimentary support for Greasemonkey (Choose/Set Parent Modes and Flag Duplicate disabled)
  • v0.99.10 2020-12-03 Use GM_openInTab instead of window.open if possible (Tampermonkey only)
  • v0.99.09 2020-11-23 fix gap before 'common tags' due to a margin (also fix my IDE screwing up my code style)
  • v0.99.09 2020-11-23 fix large gap before 'current tags' in tag menu
  • v0.99.09 2020-11-23 added a new vertically compact tag menu layout (check addon config)
  • v0.99.08 2020-11-23 improve tag menu tag/group/table alignment, generify config dialog creation
  • v0.99.07 2020-11-23 Use Flexbox in tag menu (slightly better 'tagwrapping')
  • v0.99.06 2020-11-22 support other language urls (containing /jp/ etc)
  • v0.99.05 2020-11-22 slighty adjusted margins in tag menu
  • v0.99.04 2020-11-22 fixed + - tag buttons scrolling to search bar, fix potential issue where post mode wasn't correctly updated on pageload
  • v0.99.03 2020-11-22 allow empty table entries
  • v0.99.03 2020-11-22 added support for tables in tag menu (check Info page on Sleazy Fork)
  • v0.99.02 2020-11-21 added a copy of the "Save changes" button to the tag menu, a few more style changes
  • v0.99.01 2020-11-20 forgot to clamp scale values
  • v0.99.01 2020-11-20 tag menu is now drag-scaleable
  • v0.99.00 2020-11-18 slightly adjust dark mode
  • v0.98.99 2020-11-17 support for official dark mode
  • v0.98.98 2020-11-17 Oops, let's remove that alert
  • v0.98.98 2020-11-17 Possible fix for addon not always initializing
  • v0.98.97 2020-09-10 added option to set the video volume
  • v0.98.96 2019-11-09 weaken color intensity of 'post approve' mode
  • v0.98.95 2017-08-06 added option to disable tag menu
  • v0.98.94 2017-08-05
  • v0.98.94 2017-08-05 experimental compatibility fix for "Sankaku Channel Dark" (activate it in the addon config), quicklink from tag wiki to tag edit page
  • v0.98.93 2017-06-01 added option to choose between scrolling to image top or center. fixed "scale on window resize" off state not saving.
  • v0.98.91 2017-06-01 added (optional) icons for thumbnails of animated posts. icons should now appear on all pages. added fix for theoretical case of videos not muting. added g and h hotkeys for horizontal and vertical scaling.
  • v0.98.75 2017-05-30 partial compatibility fix for Galinoa's Sankaku Channel Dark: scaling doesn't destroy aspect ratio anymore, horizontal scaling currently doesn't work right because of image positioning changes
  • v0.98.74 2017-05-28 added find [S]imilar, [D]elete and [V] set parent shortcuts, added more error checking
  • v0.98.73 2017-05-06 hotkeys should only work when alt, ctrl and shift aren't pressed
  • v0.98.72 2017-03-17 changed behaviour of the + - tag search buttons: tags are toggled and '-' toggles the negative tag ("-tagname")
  • v0.98.70 2017-03-16 changed "common tags" syntax to JSON to allow for better structuring of tags in the tag menu
  • v0.98.30 2017-03-13 added speaker icons to recommended posts too
  • v0.98.22 2017-03-11 hopefully fixed new modes sometimes not appearing for good
  • v0.98.21 2017-03-11 fixed post page not working when logged out
  • v0.98.2 2017-03-11 added a few hotkeys for certain functions
  • v0.98.1 2017-03-10 fixed new modes not always appearing
  • v0.98 2017-03-10
  • v0.98 2017-03-10 added optional (Unicode) speaker icon on thumbnails with audio. fixed new modes sometimes not being at the bottom of the list
  • v0.97.91 2017-03-09 + - tag search buttons not considered experimental anymore and enabled by default, fixed addon not working on post page when logged out
  • v0.97.90 2017-03-09 added option to pause videos, fixed issue sometimes loading config too late
  • v0.97.85 2017-03-08 also center flash videos
  • v0.97.8 2017-03-08 scroll-to-image function now vertically centers image in window
  • v0.97.7 2017-03-07 fixed image scaling option being ignored, added experimental tag menu, lots of refactoring
  • v0.97 2017-03-06 added experimental + - tag search buttons, added option to only downscale
  • v0.96 2016-11-15 1. sitefix: make pools without English translation clickable (shows "<missing English translation>"), 2. script should now be compatible with any sensible browser
  • v0.95.1 2016-10-16 fixed "Flag duplicate" action showing "undefined"
  • v0.95 2016-10-16
  • v0.95 2016-10-16
  • v0.95 2016-10-16
  • v0.91 2016-09-29
  • v0.91 2016-09-29
  • v0.91 2016-09-29