File tree Expand file tree Collapse file tree 4 files changed +47
-2
lines changed Expand file tree Collapse file tree 4 files changed +47
-2
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ export const CATEGORY = {
3838 vi : `<i class="fa-solid fa-download"></i> Tải xuống` ,
3939 } ,
4040 } ,
41+ google : {
42+ id : "google" ,
43+ name : {
44+ en : `<i class="fa-brands fa-google"></i> Google` ,
45+ vi : `<i class="fa-brands fa-google"></i> Google` ,
46+ } ,
47+ } ,
4148 facebook : {
4249 id : "facebook" ,
4350 name : {
Original file line number Diff line number Diff line change @@ -32,19 +32,21 @@ const tabs = [
3232 s . similarWeb ,
3333 s . search_sharedAccount ,
3434 s . whatWebsiteStack ,
35- s . search_googleSite ,
3635 s . search_paperWhere ,
3736 s . search_totalIndexedPages ,
3837 s . checkWebDie ,
3938 s . downDetector ,
4039 s . openWaybackUrl ,
41- s . googleCache ,
4240 ] ,
4341 } ,
4442 {
4543 ...CATEGORY . download ,
4644 scripts : [ s . download_video , s . download_image ] ,
4745 } ,
46+ {
47+ ...CATEGORY . google ,
48+ scripts : [ s . search_googleSite , s . googleShortcuts , s . googleCache ] ,
49+ } ,
4850 {
4951 ...CATEGORY . facebook ,
5052 scripts : [
Original file line number Diff line number Diff line change 1+ export default {
2+ icon : "" ,
3+ name : {
4+ en : "Google shortcuts" ,
5+ vi : "Google phím tắt" ,
6+ } ,
7+ description : {
8+ en : "Create new google doc/sheet/slide/form/site/keep/calendar" ,
9+ vi : "Tạo mới google doc/sheet/slide/form/site/keep/calendar" ,
10+ } ,
11+ blackList : [ ] ,
12+ whiteList : [ ] ,
13+ func : function ( ) {
14+ let urls = [
15+ [ "Google Doc" , "https://doc.new" ] ,
16+ [ "Google Sheet" , "https://sheet.new" ] ,
17+ [ "Google Slide" , "https://slide.new" ] ,
18+ [ "Google Form" , "https://form.new" ] ,
19+ [ "Google Site" , "https://site.new" ] ,
20+ [ "Google Keep" , "https://keep.new" ] ,
21+ [ "Google Calendar" , "https://calendar.new" ] ,
22+ ] ;
23+
24+ let option = window . prompt (
25+ "Create new:\n\n" +
26+ urls . map ( ( [ name , url ] , index ) => `- ${ index } : ${ name } \n` ) . join ( "" ) ,
27+ 0
28+ ) ;
29+
30+ if ( option != undefined && option >= 0 && option < urls . length ) {
31+ window . open ( urls [ option ] [ 1 ] ) ;
32+ }
33+ } ,
34+ } ;
Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ import youtube_viewDislikes from "./youtube_viewDislikes.js";
8181import downDetector from "./downDetector.js" ;
8282import fb_getTokenFfb from "./fb_getTokenFfb.js" ;
8383import youtube_popupPlayer from "./youtube_popupPlayer.js" ;
84+ import googleShortcuts from "./googleShortcuts.js" ;
8485
8586// inject badges
8687const allScripts = {
@@ -168,6 +169,7 @@ const allScripts = {
168169 downDetector : addBadge ( downDetector , BADGES . new ) ,
169170 fb_getTokenFfb : addBadge ( fb_getTokenFfb , BADGES . new ) ,
170171 youtube_popupPlayer : addBadge ( youtube_popupPlayer , BADGES . new ) ,
172+ googleShortcuts : addBadge ( googleShortcuts , BADGES . new ) ,
171173} ;
172174
173175// inject id to all scripts
You can’t perform that action at this time.
0 commit comments