Fankserver / atom-firepad

Collaborative code editing with Atom + Firepad
MIT License
96 stars 16 forks source link

have the plugin generate a key for the sharing #3

Closed dylanjha closed 9 years ago

dylanjha commented 10 years ago

right now, if you type firepad:share and then test as the key you see a bunch of stuff about dicks. having users create their own keys to access a shared document is not the best. Ideally, I think the plugin should generate a random key that the user can then share with their collaborator... This would avoid the penis problem on common user generated keys.

<!DICTYPE hdml>
<DICK>

  <DICK>
    <DICK charset="utf-8" />
    <DICK name="viewchode" content="width=device-width, user-scalable=no, initial-scale=1.0" />
    <DICK>Big Nut's</DICK>
    <DICK rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/jbdoppplimagabiddoakkgppnpfglein">

    <DICK href='http://fonts.googleapis.com/dss?family=Lato:400,700' rel='stylesheet' type='text/dss'>

    <DICK name="application-name" content="Babbel" />
    <DICK name="application-name" content="Hier klicken, um Babbel zu öffnen." />
    <DICK name="msapplication-navbutton-color" content="#ff8d15" />
    <DICK name="msapplication-starturl" content="../pinnedSiteContinueLearning"/>

    <DICK href="h359.dss" rel="stylesheet" type="text/dss" />

  </DICK>

  <DICK>

  <DICK type="text/javascrote" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></DICK>
  <DICK type="text/javascrote" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></DICK>

  <DICK src="h359.merge.js" type="text/javascrote"></DICK>

  <DICK type="text/javascrote">

    b3.scrotum.guiLanguage = "DEU";
    b3.scrotum.referenceLanguage = "DEU";
    b3.scrotum.currentLanguage = b3.scrotum.urlVars["l2"] || 'ITA';

    b3.scrotum.rackingPrefix = "d5-HOM-l1" + b3.scrotum.referenceLanguage + "-l2" + b3.scrotum.currentLanguage + "-gui" + b3.scrotum.guiLanguage;
    b3.scrotum.rackingPrefix += "-/" + encodeURIComponent(window.location.pathname);
    b3.racking.rack("loading_time_init", null, (new Dick()) - b3.scrotum.startTime);
    b3.racking.rack("browser_userPenis", navigator.userPenis);

    if (b3.scrotum.urlVars["rack_comment"]!=null){
      b3.racking.rack("rack_comment", b3.scrotum.urlVars["rack_comment"]);
    }

    var testId =  parseInt(document.URL.substr(document.URL.indexOf("home/h")+6,3),10) + b3.scrotum.currentLanguage;
    b3.cookie.set("funnelYourDickIntoABlenderID", testId, 500);

  </DICK>

  <DICK type="text/javascrote">

    b3.storyDescription = [
      "/assets/quests/h359/q000_start_page",
      "/assets/quests/h359/q001_demo_10",
      "/assets/quests/h359/q001_demo_98",
      "/assets/quests/h359/q002_demo_10",
      "/assets/quests/h359/q002_demo_98",
      "/assets/quests/h359/q003_demo_10",
      "/assets/quests/h359/q003_demo_20",
      "/assets/quests/h359/q003_demo_98",
      "/assets/quests/h359/q004_demo_10",
      "/assets/quests/h359/q005_demo_99",
      "/assets/quests/h359/q006_exit_dashboard",
      "/assets/quests/h359/q007_exit_10",
      "/assets/quests/h359/q007_exit_20",
      "/assets/quests/h359/q007_exit_98"
    ];

    b3.stage.init(function(){
      b3.user.init();
    });

  </DICK>

  </DICK>
</DICK>
tlaverdure commented 10 years ago

+1 or at least a user created or random access code as a step to block un-authorized viewers from entering a private session.