Skip to content

Instantly share code, notes, and snippets.

@ilsubyeega
Last active April 13, 2023 14:01
Show Gist options
  • Select an option

  • Save ilsubyeega/fcf1c15c77e24b2a1cf531cc5655f2fa to your computer and use it in GitHub Desktop.

Select an option

Save ilsubyeega/fcf1c15c77e24b2a1cf531cc5655f2fa to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Report to Naver-Dark
// @namespace https://fmt.kr/
// @description Context menu to create issue to naver-dark repo from current page.
// @version 0.1
// @author ilsubyeega
// @include *
// @grant GM_openInTab
// @run-at context-menu
// ==/UserScript==]
(function() {
'use strict';
if (!location) {
alert("location is not defined.")
return;
}
const currentUrl = window.location.href;
const url = new URL("https://github.com/DarkenPages/Naver-Dark/issues/new")
if (location.host)
url.searchParams.set("title", location.host)
let body = ""
body += "## URL\n"
body += currentUrl
body += "\n\n"
body += "## Screenshot\n\n"
url.searchParams.set("body", body)
GM_openInTab(url.toString());
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment