Reddit - Quick user tagging

When tagging a new user the tag field defaults to the most recently used tag

当前为 2022-06-30 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Reddit - Quick user tagging
  3. // @description When tagging a new user the tag field defaults to the most recently used tag
  4. // @author James Skinner <spiralx@gmail.com> (http://github.com/spiralx)
  5. // @namespace http://spiralx.org/
  6. // @version 2.1.2
  7. // @license MIT
  8. // @icon data:image/png;base64,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
  9. // @match *://*.reddit.com/r/*
  10. // @match *://*.reddit.com/user/*
  11. // @grant none
  12. // @run-at document-end
  13. // @require https://unpkg.com/jquery@3/dist/jquery.min.js
  14. // @require https://greasyfork.org/scripts/389748-console-message-v2/code/console-message-v2.js?version=730537
  15. // ==/UserScript==
  16.  
  17. /* jshint asi: true, esnext: true, laxbreak: true */
  18. /* global jQuery, message, Watcher */
  19.  
  20. /**
  21.  
  22. ==== 2.1.2 (2022.07.01) ====
  23. * Update icon and add license metadata field
  24.  
  25. ==== 2.1.1 (2022.04.16) ====
  26. * Clicking 'Clear tag' closes tag popup
  27.  
  28. ==== 2.1.0 (2021.11.05) ====
  29. * Fix when ConsoleMessage not available
  30.  
  31. ==== 2.0.5 (2021.06.08) ====
  32. * Update icons
  33.  
  34. ==== 2.0.4 (2021.06.02) ====
  35. * Set width of tag dialog to 800px
  36.  
  37. ==== 2.0.0 (2019.09.03) ====
  38. * Rename script and update version to 2.0.0
  39.  
  40. ==== 1.0.0 (2018.10.09) ====
  41. * Rewrite code base
  42. * Set previous tag on preset tag clicked
  43.  
  44. ==== 0.9.0 (2018.10.09) ====
  45. * Made tag modal wider and text smaller to accomodate more preset tags
  46. * Added clear tag link to the right of the colour drop-down
  47.  
  48. ==== 0.8.0 (2018.07.13) ====
  49. * Changed console.message require to use GreasyFork
  50.  
  51. ==== 0.7.0 (2018.02.13) ====
  52. * Changed the rendering of the tag preview to match how RES does it
  53. * Moved output to all use console.message
  54.  
  55. ==== 0.6.0 (2018.02.11) ====
  56. * Use unpkg.com for jQuery
  57. * Add console.message for logging
  58. * Use localstorage to save tags
  59. * Use new Tag class to store tag info
  60. * Updated ID for text field in tag popup
  61.  
  62. ==== 0.5.1 (2018.02.11) ====
  63. * Update icons to match other Reddit script
  64.  
  65. ==== 0.5.0 (26.08.2017) ====
  66. * Change to simple use of GM_getValue and GM_setValue for storage
  67.  
  68. ==== 0.4.0 (21.08.2017) ====
  69. * Update all other tags correctly when changing a user's tag
  70. * Handle removing all other tags when clearing a user's tag
  71.  
  72. ==== 0.3.0 (13.07.2017) ====
  73.  
  74. * Checks tag link to see if tag set, always overwrites if not
  75. * Updates other tags for same user on current page
  76.  
  77. ==== 0.2.1 (27.06.2017) ====
  78. * Changed timeout of field set function to 250ms
  79.  
  80. ==== 0.2.0 (31.05.2017) ====
  81. * Updated jQuery to v3.2.1
  82. * Added timeout before overriding tag/colour fields
  83. * Update preview when setting tag/colour
  84.  
  85. */
  86.  
  87. ; (($, Watcher, message) => {
  88.  
  89. const STYLES = {
  90. func: { color: '#c41', 'font-weight': 'bold' },
  91. attr: { color: '#1a2', 'font-weight': 'bold' },
  92. value: { color: '#05f' },
  93. punc: { 'font-weight': 'bold' },
  94. // comment: { color: 'c1007f' },
  95. // error: { color: '#f4f', 'font-weight': 'bold' },
  96. // link: { color: '#05f', 'text-decoration': 'underline' },
  97. }
  98.  
  99. // --------------------------------------------------------------------------
  100.  
  101. /*console.dir(console)
  102. console.dir(window)
  103. console.dir(message)
  104. console.dir(message())*/
  105.  
  106. if (message) {
  107. message().extend({
  108. tag({ text, colour }) {
  109. return this.text(text, {
  110. fontSize: '0.9em',
  111. padding: '0 4px',
  112. border: 'solid 1px rgb(199, 199, 199)',
  113. borderRadius: 3,
  114. ...getStyleForColour(colour)
  115. })
  116. }
  117. })
  118. }
  119.  
  120. // --------------------------------------------------------------------------
  121. // Woooooo
  122. // --------------------------------------------------------------------------
  123.  
  124. const TAG_STORAGE_KEY = 'resPreviousUserTag'
  125.  
  126. /*
  127. const OLD_TAGS_STORAGE_KEY = 'resrem'
  128.  
  129. try {
  130. if (!localStorage[ TAG_STORAGE_KEY ] && localStorage[ OLD_TAGS_STORAGE_KEY ]) {
  131. const tag = JSON.parse(localStorage[ OLD_TAGS_STORAGE_KEY ]).shift()
  132.  
  133. if (tag) {
  134. localStorage[ TAG_STORAGE_KEY ] = JSON.stringify(tag)
  135. }
  136. }
  137. } catch (ex) {
  138. console.warn(ex)
  139. }
  140. */
  141.  
  142. // --------------------------------------------------------------------------
  143.  
  144. const TAG_DIALOG_OPEN_TIMEOUT = 200
  145.  
  146. const BACKGROUND_TO_TEXT_COLOUR_MAP = {
  147. none: 'inherit',
  148. aqua: 'black',
  149. lime: 'black',
  150. pink: 'black',
  151. silver: 'black',
  152. white: 'black',
  153. yellow: 'black'
  154. }
  155.  
  156. // --------------------------------------------------------------------
  157.  
  158. const CLEAR_TAG_LINK = `
  159. <a href="javascript:void(0)"
  160. title="Clear tag">
  161. clear tag
  162. </a>
  163. `
  164.  
  165. const NO_PREVIEW_TAG = `
  166. <span class="RESUserTag">
  167. <a href="javascript:void 0"
  168. title="Set a tag"
  169. class="RESUserTagImage userTagLink truncateTag"
  170. >&nbsp;</a>
  171. </span>
  172. `
  173.  
  174. const QUICK_REPEAT_TAG = `
  175. <span class="RESUserTag" style="filter: hue-rotate(90deg) saturate(0.5);">
  176. <a href="javascript:void 0"
  177. title="Repeat previous tag"
  178. class="RESUserTagImage userTagLink truncateTag"
  179. >&nbsp;</a>
  180. </span>
  181. `
  182.  
  183. // --------------------------------------------------------------------------
  184.  
  185. const EMPTY_TAG = Object.freeze({
  186. text: '',
  187. colour: 'none'
  188. })
  189.  
  190. const isEmptyTag = ({ text, colour } = EMPTY_TAG) => text === '' && colour === 'none'
  191.  
  192. const areEqualTags = (a, b) => a.text === b.text && a.colour === b.colour
  193.  
  194. // --------------------------------------------------------------------------
  195.  
  196. let previousUserTag = EMPTY_TAG
  197. let ctx = null
  198.  
  199. if (message) {
  200. let msg = message()
  201. .text('reddit-save-res-tag.init', STYLES.func)
  202. .text(': ', STYLES.punc)
  203.  
  204. if (localStorage[ TAG_STORAGE_KEY ]) {
  205. previousUserTag = JSON.parse(localStorage[ TAG_STORAGE_KEY ])
  206.  
  207. msg = msg
  208. .text('previousUserTag', STYLES.attr)
  209. .text(' = ', STYLES.punc)
  210. .tag(previousUserTag)
  211. } else {
  212. msg = msg.text('No previous tag found')
  213. }
  214.  
  215. msg.print()
  216. } else if (localStorage[ TAG_STORAGE_KEY ]) {
  217. previousUserTag = JSON.parse(localStorage[ TAG_STORAGE_KEY ])
  218. }
  219.  
  220. // --------------------------------------------------------------------------
  221.  
  222. class TagContext {
  223. constructor ($thingElem) {
  224. this.$thingElem = $thingElem
  225.  
  226. this.authorId = $thingElem.data('author-fullname')
  227.  
  228. this.$dialog = $('.userTagger-dialog-head').closest('.RESHover')
  229.  
  230. this.user = $('.RESHover .RESHoverTitle .res-icon + span').text() || null
  231.  
  232. this.$textField = $('#userTaggerText')
  233. this.$colourField = $('#userTaggerColor')
  234. this.$previewElem = $('#userTaggerPreview')
  235. this.$presetTags = $('#userTaggerPresetTags')
  236. }
  237.  
  238. clearFields () {
  239. this.$textField.val('').focus()
  240. this.$colourField.val('none')
  241. this.$previewElem.html(NO_PREVIEW_TAG)
  242. }
  243.  
  244. setFields ({ text, colour }) {
  245. this.$textField.val(text)
  246. this.$colourField.val(colour)
  247. this.$previewElem.html(getPreviewForTag({ text, colour }))
  248. }
  249.  
  250. getTag () {
  251. return {
  252. text: this.$textField.val().trim(),
  253. colour: this.$colourField.val()
  254. }
  255. }
  256. }
  257.  
  258. // --------------------------------------------------------------------------
  259.  
  260. function getStyleForColour (colour) {
  261. return {
  262. color: BACKGROUND_TO_TEXT_COLOUR_MAP[ colour ] || 'white',
  263. backgroundColor: colour === 'none'
  264. ? 'transparent'
  265. : colour
  266. }
  267. }
  268.  
  269. // --------------------------------------------------------------------------
  270.  
  271. const getPreviewForTag = ({ text, colour }) => {
  272. const { color, backgroundColor } = getStyleForColour(colour)
  273.  
  274. return `
  275. <span class="RESUserTag">
  276. <a href="javascript:void 0"
  277. title="${text}"
  278. class="userTagLink hasTag truncateTag"
  279. style="color: ${color}; background-color: ${backgroundColor};"
  280. >${text}</a>
  281. </span>
  282. `
  283. }
  284.  
  285. // --------------------------------------------------------------------------
  286.  
  287. function onTagSelected (tag) {
  288. // console.info(`onTagSelected: tag = %o, ctx = %o, prevTag = %o`, tag, ctx, previousUserTag)
  289.  
  290. if (message) {
  291. message()
  292. .text('onTagSelected', STYLES.func)
  293. .text('(', STYLES.punc)
  294. .text('tag', STYLES.attr)
  295. .text(': ', STYLES.punc)
  296. .tag(tag)
  297. .text('): ', STYLES.punc)
  298. .text('previousUserTag', STYLES.attr)
  299. .text(' = ', STYLES.punc)
  300. .tag(previousUserTag)
  301. .text(', ', STYLES.punc)
  302. .text('ctx', STYLES.attr)
  303. .text(' = ', STYLES.punc)
  304. .object(ctx)
  305. .print()
  306. }
  307.  
  308. const $tagLinks = $(`.id-${ctx.authorId}`)
  309. .next()
  310. .children(0)
  311.  
  312. if (isEmptyTag(tag)) {
  313. $tagLinks
  314. .html('&nbsp;')
  315. .css('background-color', 'transparent')
  316. .removeClass('hasTag')
  317. .addClass('RESUserTagImage')
  318. } else if (!areEqualTags(tag, previousUserTag)) {
  319. previousUserTag = tag
  320. localStorage[TAG_STORAGE_KEY] = JSON.stringify(previousUserTag)
  321.  
  322. $tagLinks
  323. .text(tag.text)
  324. .css(getStyleForColour(tag.colour))
  325. .addClass('hasTag')
  326. .removeClass('RESUserTagImage')
  327. }
  328.  
  329. ctx = null
  330. }
  331.  
  332. // --------------------------------------------------------------------------
  333.  
  334. $('body')
  335. .on('click.resrem', 'a.userTagLink', function () {
  336. const $tagLink = $(this)
  337. const $thing = $tagLink.closest('.thing')
  338.  
  339. // console.info(`a.userTagLink.click`, this, $thing)
  340.  
  341. setTimeout(() => {
  342. ctx = new TagContext($thing)
  343. ctx.$dialog.width(800)
  344.  
  345. const authorHasTag = $tagLink.hasClass('hasTag')
  346.  
  347. if (!authorHasTag && !isEmptyTag(previousUserTag)) {
  348. ctx.setFields(previousUserTag)
  349. }
  350.  
  351. $(CLEAR_TAG_LINK)
  352. .click(function () {
  353. ctx.clearFields()
  354. $('#userTaggerSave').click()
  355. return false
  356. })
  357. .css({ marginLeft: 'auto' })
  358. .insertAfter(ctx.$colourField)
  359.  
  360. const $srcField = ctx.$previewElem.parent().next()
  361.  
  362. ctx.$presetTags
  363. .one('click.resrem', '.userTagLink', function () {
  364. const $clicked = $(this)
  365. const clickedTag = {
  366. text: $clicked.text(),
  367. colour: $clicked.css('background-color')
  368. }
  369.  
  370. // console.info(`preset .userTagLink.click`, this, clickedTag, ctx)
  371. onTagSelected(clickedTag)
  372. })
  373. .parent()
  374. .insertBefore($srcField)
  375.  
  376. $srcField.next().css({ float: 'left', width: '50%' })
  377. }, TAG_DIALOG_OPEN_TIMEOUT)
  378. })
  379. .on('click.resrem', '#userTaggerSave', function () {
  380. // console.info(`#userTaggerSave.click`, this, ctx)
  381.  
  382. if (ctx) {
  383. onTagSelected(ctx.getTag())
  384. }
  385. })
  386.  
  387. // --------------------------------------------------------------------------
  388. /*
  389. console.log(Watcher)
  390. const watcher = new Watcher(document.body)
  391.  
  392. console.log(watcher)
  393.  
  394. watcher.add(
  395. {
  396. selector: 'a.userTagLink.RESUserTagImage',
  397. events: 1,
  398. },
  399. ({ added }) => {
  400. for (const a of added) {
  401. $(a).after(QUICK_REPEAT_TAG)
  402. }
  403. }
  404. )
  405.  
  406. watcher.start()
  407. */
  408.  
  409. // --------------------------------------------------------------------------
  410.  
  411. /*
  412. <div class="RESHover RESHoverInfoCard RESDialogSmall" style="top: 387.918px; left: 215.767px; width: 350px; display: block; opacity: 1;">
  413. <h3 class="RESHoverTitle" data-hover-element="0">
  414. <div>
  415. <span class="res-icon"></span>&nbsp;<span>Plan-Six</span>
  416. </div>
  417. </h3>
  418.  
  419. <div class="RESCloseButton">x</div>
  420.  
  421. <div class="RESHoverBody RESDialogContents" data-hover-element="1">
  422. <form id="userTaggerToolTip">
  423. <div class="fieldPair">
  424. <label class="fieldPair-label" for="userTaggerText">Text</label>
  425.  
  426. <input class="fieldPair-text" type="text" id="userTaggerText">
  427. </div>
  428.  
  429. <div class="fieldPair">
  430. <label class="fieldPair-label" for="userTaggerColor">Color</label>
  431.  
  432. <select id="userTaggerColor">
  433. <option style="color: inherit; background-color: none" value="none">none</option>
  434. <option style="color: black; background-color: aqua" value="aqua">aqua</option>
  435. <option style="color: white; background-color: black" value="black">black</option>
  436. <option style="color: white; background-color: blue" value="blue">blue</option>
  437. <option style="color: white; background-color: cornflowerblue" value="cornflowerblue">cornflowerblue</option>
  438. <option style="color: white; background-color: fuchsia" value="fuchsia">fuchsia</option>
  439. <option style="color: white; background-color: gray" value="gray">gray</option>
  440. <option style="color: white; background-color: green" value="green">green</option>
  441. <option style="color: black; background-color: lime" value="lime">lime</option>
  442. <option style="color: white; background-color: maroon" value="maroon">maroon</option>
  443. <option style="color: white; background-color: navy" value="navy">navy</option>
  444. <option style="color: white; background-color: olive" value="olive">olive</option>
  445. <option style="color: white; background-color: orange" value="orange">orange</option>
  446. <option style="color: white; background-color: orangered" value="orangered">orangered</option>
  447. <option style="color: black; background-color: pink" value="pink">pink</option>
  448. <option style="color: white; background-color: purple" value="purple">purple</option>
  449. <option style="color: white; background-color: red" value="red">red</option>
  450. <option style="color: black; background-color: silver" value="silver">silver</option>
  451. <option style="color: white; background-color: teal" value="teal">teal</option>
  452. <option style="color: black; background-color: white" value="white">white</option>
  453. <option style="color: black; background-color: yellow" value="yellow">yellow</option>
  454. </select>
  455. </div>
  456.  
  457. <div class="fieldPair">
  458. <label class="fieldPair-label" for="userTaggerPreview">Preview</label>
  459.  
  460. <span id="userTaggerPreview" style="color: white; background-color: olive;">
  461. <span class="RESUserTag">
  462. <a class="userTagLink hasTag truncateTag" style="background-color: olive; color: white !important;" title="Sexist" href="javascript:void 0">Sexist</a>
  463. </span>
  464. </span>
  465. </div>
  466. <a class="userTagLink hasTag truncateTag" style="background-color: olive; color: white !important;" title="Feminist" href="javascript:void 0">Feminist</a>
  467.  
  468. <div class="fieldPair res-usertag-ignore">
  469. <label class="fieldPair-label" for="userTaggerIgnore">Ignore</label>
  470.  
  471. <div id="userTaggerIgnoreContainer" class="toggleButton ">
  472. <span class="toggleThumb"></span>
  473. <div class="toggleLabel res-icon" data-enabled-text="" data-disabled-text=""></div>
  474. <input id="userTaggerIgnore" name="userTaggerIgnore" type="checkbox">
  475. </div>
  476.  
  477. <a class="gearIcon" href="#res:settings/userTagger/hardIgnore" title="RES Settings > User Tagger > hardIgnore"> configure </a>
  478. </div>
  479.  
  480. <div class="fieldPair">
  481. <label class="fieldPair-label" for="userTaggerLink">
  482. <span class="userTaggerOpenLink">
  483. <a title="open link" href="javascript:void 0">Source URL</a>
  484. </span>
  485. </label>
  486.  
  487. <input class="fieldPair-text" type="text" id="userTaggerLink" value="https://www.reddit.com/r/giantbomb/comments/7x251d/all_systems_goku_02/du5fpwr/">
  488. </div>
  489.  
  490. <div class="fieldPair">
  491. <label class="fieldPair-label" for="userTaggerVotesUp" title="Upvotes you have given this redditor">Upvotes</label>
  492.  
  493. <input type="number" style="width: 50px;" id="userTaggerVotesUp" value="0">
  494. </div>
  495.  
  496. <div class="fieldPair">
  497. <label class="fieldPair-label" for="userTaggerVotesDown" title="Downvotes you have given this redditor">Downvotes</label>
  498.  
  499. <input type="number" style="width: 50px;" id="userTaggerVotesDown" value="0">
  500. </div>
  501.  
  502. <div class="res-usertagger-footer">
  503. <a href="/r/dashboard#userTaggerContents" target="_blank" rel="noopener noreferer">View tagged users</a>
  504.  
  505. <input type="submit" id="userTaggerSave" value="✓ save tag">
  506. </div>
  507. </form>
  508. </div>
  509. </div>
  510.  
  511. */
  512.  
  513. })(jQuery, typeof Watcher !== 'undefined' ? Watcher : null, typeof message !== 'undefined' ? message : null)
  514.  
  515. jQuery.noConflict(true)