mirror of
https://github.com/greenshot/greenshot
synced 2025-08-22 22:34:27 -07:00
Experiment to allow OAuth authentication to run via getgreenshot.org, this makes it possible to leave out the embedded browser in Greenshot and use the default browser, solving a lot of issues.
This commit is contained in:
parent
a900d8c6b0
commit
00753ec6f8
3 changed files with 28 additions and 0 deletions
8
_includes/oauth-out-of-bounds.html
Normal file
8
_includes/oauth-out-of-bounds.html
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<script language="JavaScript">
|
||||||
|
var searchQuery = window.location.search;
|
||||||
|
|
||||||
|
if (searchQuery && searchQuery.length >= 1) {
|
||||||
|
var oldTitle = (window.document.title === undefined) ? "" : window.document.title;
|
||||||
|
window.document.title=oldTitle + searchQuery.substring(1);
|
||||||
|
}
|
||||||
|
</script>
|
7
_layouts/oauth.html
Normal file
7
_layouts/oauth.html
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
layout: default
|
||||||
|
---
|
||||||
|
|
||||||
|
<h1>{{ page.title }}</h1>
|
||||||
|
|
||||||
|
{{ content }}
|
13
pages/oauth-imgur.html
Normal file
13
pages/oauth-imgur.html
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
layout: oauth
|
||||||
|
title: Greenshot authenticated with Imgur |
|
||||||
|
permalink: /oauth/imgur
|
||||||
|
categories: [oauth]
|
||||||
|
comments: []
|
||||||
|
---
|
||||||
|
{% include oauth-out-of-bounds.html %}
|
||||||
|
<p>
|
||||||
|
Greenshot should now be authenticated to use Imgur, you can close this window.
|
||||||
|
<p>
|
||||||
|
<strong>We are happy that you use Greenshot. If you like it, please consider to support the development of this open source screenshot tool with a donation.</strong></p>
|
||||||
|
{% include donate.html %}
|
Loading…
Add table
Add a link
Reference in a new issue