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 characters
    
  
  
    
  | { | |
| "diffEditor.ignoreTrimWhitespace": false, | |
| "editor.formatOnSave": true, | |
| "editor.guides.bracketPairs": false, | |
| "editor.inlineSuggest.enabled": true, | |
| "editor.minimap.enabled": false, | |
| "explorer.confirmDelete": false, | |
| "explorer.confirmDragAndDrop": false, | |
| "editor.codeActionsOnSave": [ | |
| "source.organizeImports", | 
  
    
      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 characters
    
  
  
    
  | // ブックマークレット | |
| // ↓の一行をブックマークのURLにコピペしてね | |
| javascript:(function(){const grades=[{name:"A+",credit1:0,credit2:0},{name:"A",credit1:0,credit2:0},{name:"B",credit1:0,credit2:0},{name:"C",credit1:0,credit2:0},{name:"F",credit1:0,credit2:0},];const creditsElms=[...document.querySelectorAll("#content>div.result_list>div.result_list>table>tbody>tr>td:nth-child(5)"),];const gradesElms=[...document.querySelectorAll("#content>div.result_list>div.result_list>table>tbody>tr>td:nth-child(6)"),];for(let i=0;i<gradesElms.length;i++){if(creditsElms[i].textContent==="1"){grades.map((grade)=>{if(gradesElms[i].textContent===grade.name)grade.credit1++;});}if(creditsElms[i].textContent==="2"){grades.map((grade)=>{if(gradesElms[i].textContent===grade.name)grade.credit2++;});}}const outs=grades.map((grade)=>{return`${grade.name} 1単位: ${grade.credit1} 2単位: ${grade.credit2}`;});alert(outs.join("\n"));})(); | |
| // 原文 | |
| (function () { | |
| const grades = [ | |
| { name: "A+", credit1: 0, credit2: 0 }, | |
| { name: "A", credit1: 0, credit2: 0 }, | |
  
    
      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 characters
    
  
  
    
  | // ↓をURLにコピペする | |
| javascript:{document.querySelector("video").playbackRate = parseFloat(prompt("倍速(小数)").replace(/[0-9.]/g,(s)=>{return String.fromCharCode(s.charCodeAt(0) - 65248)}));} | |
| // 見やすくするとこんな感じ | |
| // 全角で「1.7」と入力しても大丈夫 | |
| document.querySelector("video").playbackRate = parseFloat( | |
| prompt("倍速(小数)").replace(/[0-9.]/g, (s) => { | |
| return String.fromCharCode(s.charCodeAt(0) - 65248) | |
| })); |