Last active
November 21, 2019 09:58
-
-
Save gbaman/c16e953eced6821d66504dcef46b15c0 to your computer and use it in GitHub Desktop.
Revisions
-
gbaman revised this gist
Nov 21, 2019 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ Created with https://caiorss.github.io/bookmarklet-maker/ -
gbaman revised this gist
Nov 20, 2019 . 1 changed file with 6 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,13 +3,17 @@ function publisher(){ for(var i=0; i<l.length; i++) { arr.push(l[i].href); } var publish_count = 0; //for (var url_checking in arr){ arr.forEach(function (url_checking, index) { if (url_checking.includes("teacher/assignments")){ var split_url = url_checking.split("teacher/assignments/")[1].split("/edi")[0]; var url_to_post = "https://repl.it/data/teacher/assignments/" + split_url + "/publish"; $.post(url_to_post) ; publish_count = publish_count + 1; } }); alert("Published a total of " + publish_count + " activities") location.reload(); } publisher() -
gbaman revised this gist
Nov 20, 2019 . 1 changed file with 14 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,13 +1,15 @@ function publisher(){ var arr = [], l = document.links; for(var i=0; i<l.length; i++) { arr.push(l[i].href); } //for (var url_checking in arr){ arr.forEach(function (url_checking, index) { if (url_checking.includes("teacher/assignments")){ var split_url = url_checking.split("teacher/assignments/")[1].split("/edi")[0]; var url_to_post = "https://repl.it/data/teacher/assignments/" + split_url + "/publish"; $.post(url_to_post) ; } }); } -
gbaman created this gist
Nov 20, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ var arr = [], l = document.links; for(var i=0; i<l.length; i++) { arr.push(l[i].href); } //for (var url_checking in arr){ arr.forEach(function (url_checking, index) { if (url_checking.includes("teacher/assignments")){ var split_url = url_checking.split("teacher/assignments/")[1].split("/edi")[0]; var url_to_post = "https://repl.it/data/teacher/assignments/" + split_url + "/publish"; $.post(url_to_post) ; } });