Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links to missing pages and invalid links #22

Open
xparadoxical opened this issue Jun 8, 2023 · 2 comments
Open

Fix links to missing pages and invalid links #22

xparadoxical opened this issue Jun 8, 2023 · 2 comments
Labels
documentation Improvements or additions to documentation

Comments

@xparadoxical
Copy link

xparadoxical commented Jun 8, 2023

Using sourcegraph.com with the query context:global repo:^github\.com/Wyliemaster/gddocs$@master file:\.md \[[^\]]+\]\([^\)]*\) and the following JS trickery

const blob = "/-/blob/";
const docs = "docs/";
const branchPermalink = "https://github.com/Wyliemaster/gddocs/blob/1e9c45e7170ab0af9722278b97dd97bec3631dc5/"; //master

for (let header of document.querySelectorAll('article [data-testid="result-container-header"] > span:first-child')) {
    let href = header.firstElementChild.firstElementChild.children[2].href;
    let repoFilePath = href.substring(href.indexOf(blob) + blob.length);
    let docsLocation = repoFilePath.substring(repoFilePath.indexOf("/") + 1);

    header.innerHTML += `<a href="https://wyliemaster.github.io/gddocs/#/${docsLocation}">Open gd docs</a>`;
    header.innerHTML += `<div style="padding-left: 0.5em; cursor: pointer;" onclick="navigator.clipboard.writeText(&quot;${branchPermalink}${repoFilePath}?plain=1&quot;)">Copy GH link</div>`;
}

then by checking everything manually, I compiled a list of broken links:

I could've saved so much time if I'd automate this by reading markdown links in files... . . . . . .  .  .   .     .      .

@xBZZZZ
Copy link

xBZZZZ commented Dec 9, 2023

i need the GJP thing, can someone explain ?

gjp is encoded account password:

import itertools,base64

def gjp(password:bytes)->bytes:
    return base64.urlsafe_b64encode(bytes(a^b for a,b in zip(itertools.cycle(b"37526"),password)))

@Wyliemaster Wyliemaster added the documentation Improvements or additions to documentation label Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants
@xparadoxical @Wyliemaster @xBZZZZ and others