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:
Robin 2018-06-19 13:18:21 +02:00
commit 00753ec6f8
3 changed files with 28 additions and 0 deletions

View 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
View file

@ -0,0 +1,7 @@
---
layout: default
---
<h1>{{ page.title }}</h1>
{{ content }}

13
pages/oauth-imgur.html Normal file
View 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 %}