sample userscript template

sample userscript - Monday 15 March 2021 14:40:21 CET

  1. /**
  2. * MIT License
  3. *
  4. * Copyright (c) 2021 ccdd13
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a copy
  7. * of this software and associated documentation files (the "Software"), to deal
  8. * in the Software without restriction, including without limitation the rights
  9. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  10. * copies of the Software, and to permit persons to whom the Software is
  11. * furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice shall be included in all
  14. * copies or substantial portions of the Software.
  15. *
  16. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  17. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  19. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  20. * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  22. * SOFTWARE.
  23. *
  24. */
  25. // ==UserScript==
  26. // @name sample userscript template
  27. // @namespace https://greasyfork.org/en/users/747584-ccdd13
  28. // @description sample userscript - Monday 15 March 2021 14:40:21 CET
  29. // @version 1.0.0
  30. // @author ccdd13
  31. // @copyright 2021, ccdd13 (https://greasyfork.org/en/users/747584-ccdd13)
  32. // @license MIT
  33. // @homepage https://openuserjs.org/scripts/ccdd13/sample_userscript_template
  34. // @homepage https://greasyfork.org/en/scripts/423266-sample-userscript-template
  35. // @supportURL https://openuserjs.org/scripts/ccdd13/sample_userscript_template/issues
  36. // @supportURL https://greasyfork.org/en/scripts/423266-sample-userscript-template/feedback
  37. // @contributionURL https://blockchain.com/btc/payment_request?address=1Nm2q6VjDcabFVhS6HyYdUzUWbUkg1
  38. // @require https://cdn.jsdelivr.net/npm/@violentmonkey/dom@1
  39. // @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1
  40. // @require https://cdn.jsdelivr.net/combine/npm/@violentmonkey/dom@1,npm/@violentmonkey/ui
  41. // @require https://openuserjs.org/src/libs/sizzle/GM_config.js
  42. // @require https://openuserjs.org/src/libs/Marti/GM_setStyle.js
  43. // @require https://openuserjs.org/src/libs/cuzi/RequestQueue.js
  44. // @require https://openuserjs.org/src/libs/wishingking/GM_createMenu.js
  45. // @require https://greasyfork.org/scripts/421384-gm-fetch/code/GM_fetch.js
  46. // @require https://greasyfork.org/scripts/418856-gm-datastore/code/GM%20DataStore.js
  47. // @require https://greasyfork.org/scripts/420061-super-gm-setvalue-and-gm-getvalue-greasyfork-mirror-js/code/Super_GM_setValue_and_GM_getValue_greasyfork_mirrorjs.js
  48. // @require https://greasyfork.org/scripts/419588-uniq/code/UniQ.js
  49. // @require https://greasyfork.org/scripts/23115-tampermonkey-support-library/code/Tampermonkey%20Support%20Library.js
  50. // @require https://greasyfork.org/scripts/5647-instasynchp-library/code/InstaSynchP%20Library.js
  51. // @require https://greasyfork.org/scripts/421266-easy-cookie-manager/code/Easy%20Cookie%20Manager.js
  52. // @require https://greasyfork.org/scripts/398877-utils-js/code/utilsjs.js
  53. // @require https://greasyfork.org/scripts/420842-vanilla-js-wheel-zoom/code/vanilla-js-wheel-zoom.js
  54. // @require https://greasyfork.org/scripts/411093-toast/code/Toast.js
  55. // @require https://greasyfork.org/scripts/422672-vanilla-js-tooltip-min-js/code/vanilla-js-tooltipminjs.js
  56. // @match http*://*/*
  57. // @grant GM_getValue
  58. // @grant GM_setValue
  59. // @grant GM_deleteValue
  60. // @grant GM_listValues
  61. // @grant GM_addValueChangeListener
  62. // @grant GM_removeValueChangeListener
  63. // @grant GM_addStyle
  64. // @grant GM_registerMenuCommand
  65. // @grant GM_unregisterMenuCommand
  66. // @grant GM_setClipboard
  67. // @grant GM_xmlhttpRequest
  68. // @grant GM_getResourceText
  69. // @grant GM_getResourceURL
  70. // @grant GM_download
  71. // @grant GM_openInTab
  72. // @grant GM_notification
  73. // ==/UserScript==
  74.  
  75. // ==OpenUserScript==
  76. // @author ccdd13
  77. // @collaborator ccdd13
  78. // ==/OpenUserScript==
  79.  
  80. /* jshint esversion: 6 */
  81.  
  82. alert(`sample userscript`)