Skip to content

Commit

Permalink
[refactor] cleanup
Browse files Browse the repository at this point in the history
Probably one of my last commits
  • Loading branch information
drunkwinter committed Nov 16, 2024
1 parent 97b4760 commit 72ec855
Show file tree
Hide file tree
Showing 51 changed files with 707 additions and 1,593 deletions.
15 changes: 9 additions & 6 deletions .github/scripts/publish_to_greasyfork/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ async function main() {

const greasyfork_script_type = (() => {
switch (process.env.GREASYFORK_SCRIPT_TYPE) {
case 'public': return '1';
case 'unlisted': return '2';
case 'library': return '3';
case 'public':
return '1';
case 'unlisted':
return '2';
case 'library':
return '3';
}
})();
if (!greasyfork_script_type) {
Expand Down Expand Up @@ -56,7 +59,7 @@ async function publish_to_greasyfork(user_email: string, user_pass: string, scri
const BASE_URL = 'https://greasyfork.org';

// "/en/search" appears to be the lightest page
const LIGHTEST_PAGE_URL= `${BASE_URL}/en/search`;
const LIGHTEST_PAGE_URL = `${BASE_URL}/en/search`;

// Get initial page to retrieve the initial tokens
const initial_response = await fetch(LIGHTEST_PAGE_URL);
Expand All @@ -70,7 +73,7 @@ async function publish_to_greasyfork(user_email: string, user_pass: string, scri
throw new Error('Could not retrieve initial authenticity token');
}

const login_request_url= `${BASE_URL}/en/users/sign_in`;
const login_request_url = `${BASE_URL}/en/users/sign_in`;

const login_request_options: RequestInit = {
method: 'POST',
Expand Down Expand Up @@ -130,7 +133,7 @@ async function publish_to_greasyfork(user_email: string, user_pass: string, scri
update_body.set('script[adult_content_self_report]', '0');
update_body.set('commit', 'Post new version');

const upload_request_url= `${BASE_URL}/en/scripts/${script_id}/versions`;
const upload_request_url = `${BASE_URL}/en/scripts/${script_id}/versions`;

const upload_request_options: RequestInit = {
method: 'POST',
Expand Down
1 change: 0 additions & 1 deletion account-proxy/.gitignore

This file was deleted.

49 changes: 0 additions & 49 deletions account-proxy/README.md

This file was deleted.

94 changes: 0 additions & 94 deletions account-proxy/controllers/proxyController.js

This file was deleted.

13 changes: 0 additions & 13 deletions account-proxy/controllers/statsController.js

This file was deleted.

63 changes: 0 additions & 63 deletions account-proxy/lib/innertubeApi.js

This file was deleted.

Loading

0 comments on commit 72ec855

Please sign in to comment.