{
  "submission_id": "1699482",
  "keywords": [
    {
      "keyword_id": "4494",
      "keyword_name": "script",
      "contributed": "f",
      "submissions_count": "218"
    }
  ],
  "hidden": "f",
  "scraps": "f",
  "favorite": "f",
  "favorites_count": "3",
  "create_datetime": "2018-09-16 10:58:44.687854+00",
  "create_datetime_usertime": "16 Sep 2018 12:58 CEST",
  "last_file_update_datetime": "2018-09-16 10:47:25.244846+00",
  "last_file_update_datetime_usertime": "16 Sep 2018 12:47 CEST",
  "username": "JustLurking",
  "user_id": "11985",
  "user_icon_file_name": "96044_JustLurking_final_spiral2.gif",
  "user_icon_url_large": "https://nl1.ib.metapix.net/usericons/large/96/96044_JustLurking_final_spiral2.gif",
  "user_icon_url_medium": "https://nl1.ib.metapix.net/usericons/medium/96/96044_JustLurking_final_spiral2.gif",
  "user_icon_url_small": "https://nl1.ib.metapix.net/usericons/small/96/96044_JustLurking_final_spiral2.gif",
  "file_name": "2430237_JustLurking_ib-submissions-automark-1.txt",
  "file_url_full": "https://nl1.ib.metapix.net/files/full/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
  "file_url_screen": "https://nl1.ib.metapix.net/files/screen/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
  "file_url_preview": "https://nl1.ib.metapix.net/files/preview/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
  "files": [
    {
      "file_id": "2430237",
      "file_name": "2430237_JustLurking_ib-submissions-automark-1.txt",
      "file_url_full": "https://nl1.ib.metapix.net/files/full/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
      "file_url_screen": "https://nl1.ib.metapix.net/files/screen/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
      "file_url_preview": "https://nl1.ib.metapix.net/files/preview/2430/2430237_JustLurking_ib-submissions-automark-1.txt",
      "mimetype": "text/plain",
      "submission_id": "1699482",
      "user_id": "11985",
      "submission_file_order": "0",
      "full_size_x": null,
      "full_size_y": null,
      "screen_size_x": null,
      "screen_size_y": null,
      "preview_size_x": null,
      "preview_size_y": null,
      "initial_file_md5": "25fb28cea99070f953f608996ba32025",
      "full_file_md5": "25fb28cea99070f953f608996ba32025",
      "large_file_md5": "",
      "small_file_md5": "",
      "thumbnail_md5": "",
      "deleted": "f",
      "create_datetime": "2018-09-16 10:47:25.244846+00",
      "create_datetime_usertime": "16 Sep 2018 12:47 CEST"
    }
  ],
  "pools": [
    {
      "pool_id": "3115",
      "name": "Everything in Order of Creation",
      "description": "Everything in my gallery in the order it was created.",
      "count": "70",
      "submission_left_submission_id": "1498362",
      "submission_left_file_name": "2121553_JustLurking_bedtime.png",
      "submission_left_thumbnail_url_huge_noncustom": "https://nl1.ib.metapix.net/files/preview/2121/2121553_JustLurking_bedtime.jpg",
      "submission_left_thumbnail_url_large_noncustom": "https://nl1.ib.metapix.net/thumbnails/large/2121/2121553_JustLurking_bedtime_noncustom.jpg",
      "submission_left_thumbnail_url_medium_noncustom": "https://nl1.ib.metapix.net/thumbnails/medium/2121/2121553_JustLurking_bedtime_noncustom.jpg",
      "submission_left_thumb_medium_noncustom_x": "120",
      "submission_left_thumb_medium_noncustom_y": "107",
      "submission_left_thumb_large_noncustom_x": "200",
      "submission_left_thumb_large_noncustom_y": "179",
      "submission_left_thumb_huge_noncustom_x": "300",
      "submission_left_thumb_huge_noncustom_y": "269",
      "submission_right_submission_id": "1699760",
      "submission_right_file_name": "2430617_JustLurking_re-egg-ducation.jpg",
      "submission_right_thumbnail_url_huge_noncustom": "https://nl1.ib.metapix.net/files/preview/2430/2430617_JustLurking_re-egg-ducation.jpg",
      "submission_right_thumbnail_url_large_noncustom": "https://nl1.ib.metapix.net/thumbnails/large/2430/2430617_JustLurking_re-egg-ducation_noncustom.jpg",
      "submission_right_thumbnail_url_medium_noncustom": "https://nl1.ib.metapix.net/thumbnails/medium/2430/2430617_JustLurking_re-egg-ducation_noncustom.jpg",
      "submission_right_thumb_medium_noncustom_x": "120",
      "submission_right_thumb_medium_noncustom_y": "96",
      "submission_right_thumb_large_noncustom_x": "200",
      "submission_right_thumb_large_noncustom_y": "160",
      "submission_right_thumb_huge_noncustom_x": "300",
      "submission_right_thumb_huge_noncustom_y": "240"
    }
  ],
  "description": "A UserScript for GreaseMonkey/TamperMonkey that causes submissions in InkBunny's new submissions view to open in a new tab/window by default and autochecks them so you can keep your place more easily.\n\nThis script is released under a [url=http://creativecommons.org/publicdomain/zero/1.0/]CC0[/url] license so you can make copies and modify them as you wish.  That said, you're probably better off [i]downloading[/i] the script than trying to copy it out of the page.  Downloading preserves tabs and other whitespace.\n\nKnown Limitations/Bugs:\n· The anti-phishing measures in some browsers prevent scripts from acting on middle-clicks in some circumstances.  Whether or not middle-click-following a link is visible to the script is up to your browser.",
  "description_bbcode_parsed": "<span style='word-wrap: break-word;'>A UserScript for GreaseMonkey/TamperMonkey that causes submissions in InkBunny&#039;s new submissions view to open in a new tab/window by default and autochecks them so you can keep your place more easily.<br /><br />This script is released under a <a href=\"http://creativecommons.org/publicdomain/zero/1.0/\" rel=\"nofollow\">CC0</a> license so you can make copies and modify them as you wish.&nbsp;&nbsp;That said, you&#039;re probably better off <em>downloading</em> the script than trying to copy it out of the page.&nbsp;&nbsp;Downloading preserves tabs and other whitespace.<br /><br />Known Limitations/Bugs:<br />&middot; The anti-phishing measures in some browsers prevent scripts from acting on middle-clicks in some circumstances.&nbsp;&nbsp;Whether or not middle-click-following a link is visible to the script is up to your browser.</span>",
  "writing": "[code]// ==UserScript==\n// [at_iconname]name[/at_iconname]        InkBunny New Submission Autocheck-on-open.\n// [at_iconname]namespace[/at_iconname]   https://inkbunny.net/JustLurking\n// [at_iconname]description[/at_iconname] Causes submissions in InkBunny's new submissions view to open in a new tab/window by default and autochecks them so you can keep your place more easily.\n// [at_iconname]include[/at_iconname]     https://inkbunny.net/submissionsviewall.php*\n// [at_iconname]version[/at_iconname]     1\n// [at_iconname]grant[/at_iconname]       none\n// ==/UserScript==\n\n(() => {\n\nif (!document.location.search.includes (\"mode=unreadsubs\"))\n\treturn;\n\nconst   links = document.evaluate (\n\t\t'//a[starts-with (@href, \"/s/\")]',\n\t\tdocument,\n\t\tnull,\n\t\tXPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,\n\t\tnull\n\t),\n\ttotal_links = links.snapshotLength,\n\ttick_submission = e => {\n\t\tconst   first_input = document.evaluate (\n\t\t\t\t'ancestor-or-self::*['+\n\t\t\t\t'contains (@class, '+\n\t\t\t\t'\"widget_thumbnailCompleteFromSubmission\")'+\n\t\t\t\t']/descendant-or-self::input',\n\t\t\t\te.target,\n\t\t\t\tnull,\n\t\t\t\tXPathResult.ANY_UNORDERED_NODE_TYPE,\n\t\t\t\tnull\n\t\t\t),\n\t\t\tcheckbox = first_input.singleNodeValue;\n\t\tif (checkbox)\n\t\t\tcheckbox.checked = true;\n\t};\n\nfor (let i = 0; i < total_links; ++i) {\n\tconst link = links.snapshotItem (i);\n\tlink.setAttribute ('target', '_blank');\n\tlink.addEventListener ('click', tick_submission);\n}\n\n})();[/code]",
  "writing_bbcode_parsed": "<span style='word-wrap: break-word;'>// ==UserScript==<br />// [at_iconname]name[/at_iconname]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InkBunny New Submission Autocheck-on-open.<br />// [at_iconname]namespace[/at_iconname]&nbsp;&nbsp; <a href=\"https://inkbunny.net/JustLurking\" rel=\"nofollow\">https://inkbunny.net/JustLurking</a><br />// [at_iconname]description[/at_iconname] Causes submissions in InkBunny&#039;s new submissions view to open in a new tab/window by default and autochecks them so you can keep your place more easily.<br />// [at_iconname]include[/at_iconname]&nbsp;&nbsp;&nbsp;&nbsp; <a href=\"https://inkbunny.net/submissionsviewall.php*\" rel=\"nofollow\">https://inkbunny.net/submissionsviewall.php*</a><br />// [at_iconname]version[/at_iconname]&nbsp;&nbsp;&nbsp;&nbsp; 1<br />// [at_iconname]grant[/at_iconname]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; none<br />// ==/UserScript==<br /><br />(() =&gt; {<br /><br />if (!document.location.search.includes (&quot;mode=unreadsubs&quot;))<br />\treturn;<br /><br />const&nbsp;&nbsp; links = document.evaluate (<br />\t\t&#039;//a[starts-with (@href, &quot;/s/&quot;)]&#039;,<br />\t\tdocument,<br />\t\tnull,<br />\t\tXPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,<br />\t\tnull<br />\t),<br />\ttotal_links = links.snapshotLength,<br />\ttick_submission = e =&gt; {<br />\t\tconst&nbsp;&nbsp; first_input = document.evaluate (<br />\t\t\t\t&#039;ancestor-or-self::*[&#039;+<br />\t\t\t\t&#039;contains (@class, &#039;+<br />\t\t\t\t&#039;&quot;widget_thumbnailCompleteFromSubmission&quot;)&#039;+<br />\t\t\t\t&#039;]/descendant-or-self::input&#039;,<br />\t\t\t\te.target,<br />\t\t\t\tnull,<br />\t\t\t\tXPathResult.ANY_UNORDERED_NODE_TYPE,<br />\t\t\t\tnull<br />\t\t\t),<br />\t\t\tcheckbox = first_input.singleNodeValue;<br />\t\tif (checkbox)<br />\t\t\tcheckbox.checked = true;<br />\t};<br /><br />for (let i = 0; i &lt; total_links; ++i) {<br />\tconst link = links.snapshotItem (i);<br />\tlink.setAttribute (&#039;target&#039;, &#039;_blank&#039;);<br />\tlink.addEventListener (&#039;click&#039;, tick_submission);<br />}<br /><br />})();</span>",
  "pools_count": 1,
  "title": "InkBunny New Submission Autocheck-on-open.",
  "deleted": "f",
  "public": "t",
  "mimetype": "text/plain",
  "pagecount": "1",
  "rating_id": "0",
  "rating_name": "General",
  "ratings": [],
  "submission_type_id": "12",
  "type_name": "Writing - Document",
  "guest_block": "f",
  "friends_only": "f",
  "comments_count": "5",
  "views": "170"
}