Git Product home page Git Product logo

Comments (9)

Mottie avatar Mottie commented on May 20, 2024

Hi @Bluscream!

I don't have any private repos, so I don't know the process of converting repos from private to public. I wouldn't think it would be difficult. I'm not sure how I can help.

from github-userscripts.

Bluscream avatar Bluscream commented on May 20, 2024

I can give you temporary access to my account if that helps :)

from github-userscripts.

Mottie avatar Mottie commented on May 20, 2024

LOL, no don't do that.

I saw this documentation - https://help.github.com/articles/making-a-private-repository-public/

If you need a userscript to fill in the input, just give me the id of that input.

from github-userscripts.

Bluscream avatar Bluscream commented on May 20, 2024

If you need a userscript to fill in the input, just give me the id of that input.

Wouldn't that only make 1 repo public?

anyway:

input of repo name:

<input class="form-control input-block" autofocus="" required="" pattern="[oO][bB][sS]-[cC][oO][nN][fF][iI][gG]|[bB][lL][uU][sS][cC][rR][eE][aA][mM]/[oO][bB][sS]-[cC][oO][nN][fF][iI][gG]" aria-label="Type in the name of the repository to confirm that you want to change the visibility of this repository." name="verify" type="text">

box: with button:

<li class="Box-row">
          

      <details class="details-reset details-overlay details-overlay-dark">
        <summary class="btn btn-danger boxed-action">Make public</summary>
        <details-dialog class="anim-fade-in fast Box Box--overlay d-flex flex-column" role="dialog">
          <div class="Box-header">
            <button class="Box-btn-octicon btn-octicon float-right" type="button" aria-label="Close dialog" data-close-dialog="">
              <svg class="octicon octicon-x" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M7.48 8l3.75 3.75-1.48 1.48L6 9.48l-3.75 3.75-1.48-1.48L4.52 8 .77 4.25l1.48-1.48L6 6.52l3.75-3.75 1.48 1.48L7.48 8z"></path></svg>
            </button>
            <h3 class="Box-title">Make this repository public</h3>
          </div>
          <div class="flash flash-full flash-warn">
            <svg class="octicon octicon-alert" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8.893 1.5c-.183-.31-.52-.5-.887-.5s-.703.19-.886.5L.138 13.499a.98.98 0 0 0 0 1.001c.193.31.53.501.886.501h13.964c.367 0 .704-.19.877-.5a1.03 1.03 0 0 0 .01-1.002L8.893 1.5zm.133 11.497H6.987v-2.003h2.039v2.003zm0-3.004H6.987V5.987h2.039v4.006z"></path></svg>
            Listen up! This is a potentially destructive action.
          </div>
          <div class="Box-body overflow-auto">
            <ul class="ml-3">
                <li>The code will be visible to everyone who can visit https://github.com</li>
                <li>Anyone can fork your repository.</li>
                <li>Your changes will be published as activity.</li>
            </ul>
          </div>
          <div class="Box-body">
            <p>Please type in the name of the repository to confirm.</p>
            <!-- '"` --><!-- </textarea></xmp> --><form class="js-normalize-submit" action="/Bluscream/obs-config/settings/toggle_permission" accept-charset="UTF-8" method="post"><input name="utf8" value="" type="hidden"><input name="authenticity_token" value="kNY7/==" type="hidden">
              <p>
                <input class="form-control input-block" autofocus="" required="" pattern="[oO][bB][sS]-[cC][oO][nN][fF][iI][gG]|[bB][lL][uU][sS][cC][rR][eE][aA][mM]/[oO][bB][sS]-[cC][oO][nN][fF][iI][gG]" aria-label="Type in the name of the repository to confirm that you want to change the visibility of this repository." name="verify" type="text">
              </p>
              <div class="full-button">
                <button type="submit" class="btn btn-block btn-danger" data-disable-invalid="" data-disable-with="" disabled="">I understand, make this repository public.</button>
              </div>
</form>          </div>
        </details-dialog>
      </details>

    <strong>Make this repository public</strong>
      <p>
          Make this repository visible to anyone.
      </p>


        </li>

from github-userscripts.

Mottie avatar Mottie commented on May 20, 2024

Ok, try this:

// ==UserScript==
// @name        GitHub Add Repo Name to Change Visibility
// @version     0.1.2
// @description A userscript that adds your repo name to the visibility dialog
// @license     MIT
// @author      Rob Garrison
// @namespace   https://github.com/Mottie
// @include     https://github.com/*
// @run-at      document-idle
// @require     https://greasyfork.org/scripts/28721-mutations/code/mutations.js?version=597950
// @icon        https://assets-cdn.github.com/pinned-octocat.svg
// ==/UserScript==
(() => {
	"use strict";

	function addName() {
		const name = document.getElementById("rename_field");
		if (name) {
			document.querySelector("form[action$='toggle_permission'] .input-block").value = name.value;
			const btn = document.querySelector("form[action$='toggle_permission'] .btn-danger");
			btn.removeAttribute("disabled");
			btn.removeAttribute("data-disable-invalid");
		}
	}

	document.addEventListener("ghmo:container", addName);
	addName();
})();

from github-userscripts.

Mottie avatar Mottie commented on May 20, 2024

And yes, it will only work on one repo at a time... I haven't looked to see how to automate the action using the API as I don't have any way to test the code.

from github-userscripts.

Bluscream avatar Bluscream commented on May 20, 2024

What's your email?

from github-userscripts.

Mottie avatar Mottie commented on May 20, 2024

It's on my bio page: https://github.com/Mottie

I really don't want access to your accounts.

from github-userscripts.

CollinChaffin avatar CollinChaffin commented on May 20, 2024

Sorry to chime in @Bluscream but something does not sound right to me in what you're describing as I have legal experience and any "suit" (and you seemed to be stating that the police served you) would clearly have provided (it's the law) the "complaint" which would have had to detail at the very least what software product it involved.

Just my opinion Rob but IMO, I too would be VERY skeptical of touching his repos in any way because to me, barring additional details, it sounds much more like a pending criminal investigation than a typical lawsuit - and probably NOT something anyone else needs to get involved with right now and muddy the water.

from github-userscripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.