SlideShare uma empresa Scribd logo
1 de 9
Baixar para ler offline
GREASEMONKEY
(          )
• 
• 
•       JavaScript
•  Chrome    Opera
•  HTML

• 
•  Autopager
• 
GREASEMONKEY            	

•  Firefox
• 
  • 
  •  CSS
  •          js   (jQuery   )


•  Chrome
•                                *****.user.js

• 
•    // ==UserScript==
•    // @name                    hello_world
•    // @namespace               http://hoge.com/
•    // @description             Greasemonkey             	
 
•    // @include                 http://www.google.co.jp/*
•    // @require                 http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
•    // @version                 1.0
•    // ==/UserScript==

•  /*                       */


• 
•  // Google                                        	
 
•  var input = $("#lst-ib")

•         .attr("value","Hello World(Greasemonkey)");//               	
 

•  // input                        	
 
•  input.after(

•           //                                                  	
 
•       	
  input.clone().css({
•                       "background": "#000",//           	
 
•       	
          	
  "color": "#FFF",//    	
 
•       	
  })

•  );
•  http://www.google.co.jp/
•  DOM
•  Firebug



• 
     •  GM_log()
     •  alert()
• 
// ==UserScript==
// @name                   hello_world
// @namespace                        http://hoge.com/
// @description                      Greasemonkey             	
 
// @include                          http://www.google.co.jp/*
// @require                          http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
// @version                          1.0
// ==/UserScript==

// Google                                     	
 
var input = $("#lst-ib")

            .attr("value","Hello World(Greasemonkey)");//                	
 
	
 
GM_log("              ");

// input                         	
 
input.after(

               //                                                 	
 
           	
 input.clone().css({
                           "background": "#000",//          	
 
           	
           	
 “color”: “#FFF”,//         	
 
           	
 })

);


$("#hplogo").css("background", "url(http://k.yimg.jp/images/top/sp/logo.gif)");

Mais conteúdo relacionado

Mais procurados

การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์เทวัญ ภูพานทอง
 
UI実装におけるコーディングあれこれ
UI実装におけるコーディングあれこれUI実装におけるコーディングあれこれ
UI実装におけるコーディングあれこれHiromu Hasegawa
 
WordPress Customizer
WordPress CustomizerWordPress Customizer
WordPress Customizerslicejack
 
クライアントの満足度を高める!管理画面の簡単カスタマイズ!
クライアントの満足度を高める!管理画面の簡単カスタマイズ!クライアントの満足度を高める!管理画面の簡単カスタマイズ!
クライアントの満足度を高める!管理画面の簡単カスタマイズ!Tomohiro Okuwaki
 
Plano Diretor 2020
Plano Diretor 2020Plano Diretor 2020
Plano Diretor 2020CAECO-UFRJ
 
Interactions du paludisme et autres maladies infectieuses
Interactions du paludisme et autres maladies infectieusesInteractions du paludisme et autres maladies infectieuses
Interactions du paludisme et autres maladies infectieusesInstitut Pasteur de Madagascar
 
もっと使いやすくなる a-blog cms の更新方法カスタマイズ
もっと使いやすくなる a-blog cms の更新方法カスタマイズもっと使いやすくなる a-blog cms の更新方法カスタマイズ
もっと使いやすくなる a-blog cms の更新方法カスタマイズKasumi Morita
 
观剧卡免费赠读者
观剧卡免费赠读者观剧卡免费赠读者
观剧卡免费赠读者sugeladi
 
Javascript and jQuery for Mobile
Javascript and jQuery for MobileJavascript and jQuery for Mobile
Javascript and jQuery for MobileIvano Malavolta
 
Materi akt pajak jurnal
Materi akt pajak   jurnalMateri akt pajak   jurnal
Materi akt pajak jurnalVeD VeD
 
Purchase return
Purchase returnPurchase return
Purchase returnb3randal
 
5th Comenius Meeting in Reus
5th Comenius Meeting in Reus5th Comenius Meeting in Reus
5th Comenius Meeting in ReusCOMENIUS1012
 
Banrisul identidade visual_correspondente
Banrisul identidade visual_correspondenteBanrisul identidade visual_correspondente
Banrisul identidade visual_correspondente+ Aloisio Magalhães
 
BE_certificate
BE_certificateBE_certificate
BE_certificateRAHUL SAHA
 
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความการแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความเทวัญ ภูพานทอง
 
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writing
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writingการเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writing
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writingsongsri
 

Mais procurados (20)

การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
การเรียกใช้และการเปลี่ยนรูปแบบการแสดงข้อมูลในไฟล์และโฟลเดอร์
 
The evil consequences of fornication and adultery
The evil consequences of fornication and adulteryThe evil consequences of fornication and adultery
The evil consequences of fornication and adultery
 
UI実装におけるコーディングあれこれ
UI実装におけるコーディングあれこれUI実装におけるコーディングあれこれ
UI実装におけるコーディングあれこれ
 
การสร้างรูปทรงเรขาคณิต
การสร้างรูปทรงเรขาคณิตการสร้างรูปทรงเรขาคณิต
การสร้างรูปทรงเรขาคณิต
 
WordPress Customizer
WordPress CustomizerWordPress Customizer
WordPress Customizer
 
クライアントの満足度を高める!管理画面の簡単カスタマイズ!
クライアントの満足度を高める!管理画面の簡単カスタマイズ!クライアントの満足度を高める!管理画面の簡単カスタマイズ!
クライアントの満足度を高める!管理画面の簡単カスタマイズ!
 
Plano Diretor 2020
Plano Diretor 2020Plano Diretor 2020
Plano Diretor 2020
 
Interactions du paludisme et autres maladies infectieuses
Interactions du paludisme et autres maladies infectieusesInteractions du paludisme et autres maladies infectieuses
Interactions du paludisme et autres maladies infectieuses
 
mumu
mumumumu
mumu
 
もっと使いやすくなる a-blog cms の更新方法カスタマイズ
もっと使いやすくなる a-blog cms の更新方法カスタマイズもっと使いやすくなる a-blog cms の更新方法カスタマイズ
もっと使いやすくなる a-blog cms の更新方法カスタマイズ
 
观剧卡免费赠读者
观剧卡免费赠读者观剧卡免费赠读者
观剧卡免费赠读者
 
Javascript and jQuery for Mobile
Javascript and jQuery for MobileJavascript and jQuery for Mobile
Javascript and jQuery for Mobile
 
Materi akt pajak jurnal
Materi akt pajak   jurnalMateri akt pajak   jurnal
Materi akt pajak jurnal
 
Purchase return
Purchase returnPurchase return
Purchase return
 
5th Comenius Meeting in Reus
5th Comenius Meeting in Reus5th Comenius Meeting in Reus
5th Comenius Meeting in Reus
 
Banrisul identidade visual_correspondente
Banrisul identidade visual_correspondenteBanrisul identidade visual_correspondente
Banrisul identidade visual_correspondente
 
BE_certificate
BE_certificateBE_certificate
BE_certificate
 
การแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความการแทรกสัญลักษณ์หน้าข้อความ
การแทรกสัญลักษณ์หน้าข้อความ
 
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writing
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writingการเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writing
การเขียนคู่มือการปฏิบัติงานให้น่าอ่าน/Manual writing
 
Anatomi all ecg_emg
Anatomi all ecg_emgAnatomi all ecg_emg
Anatomi all ecg_emg
 

Mais de B4LT

カルチュア・コンビニエンス・クラブ株式会社
カルチュア・コンビニエンス・クラブ株式会社カルチュア・コンビニエンス・クラブ株式会社
カルチュア・コンビニエンス・クラブ株式会社B4LT
 
就活どう?
就活どう?就活どう?
就活どう?B4LT
 
Wiiリモコンのススメ
WiiリモコンのススメWiiリモコンのススメ
WiiリモコンのススメB4LT
 
集中してみよう
集中してみよう集中してみよう
集中してみようB4LT
 
4G(4th
4G(4th4G(4th
4G(4thB4LT
 
長期記憶
長期記憶長期記憶
長期記憶B4LT
 
ゲーミフィケーションについて
ゲーミフィケーションについてゲーミフィケーションについて
ゲーミフィケーションについてB4LT
 
後期LTについて
後期LTについて後期LTについて
後期LTについてB4LT
 

Mais de B4LT (8)

カルチュア・コンビニエンス・クラブ株式会社
カルチュア・コンビニエンス・クラブ株式会社カルチュア・コンビニエンス・クラブ株式会社
カルチュア・コンビニエンス・クラブ株式会社
 
就活どう?
就活どう?就活どう?
就活どう?
 
Wiiリモコンのススメ
WiiリモコンのススメWiiリモコンのススメ
Wiiリモコンのススメ
 
集中してみよう
集中してみよう集中してみよう
集中してみよう
 
4G(4th
4G(4th4G(4th
4G(4th
 
長期記憶
長期記憶長期記憶
長期記憶
 
ゲーミフィケーションについて
ゲーミフィケーションについてゲーミフィケーションについて
ゲーミフィケーションについて
 
後期LTについて
後期LTについて後期LTについて
後期LTについて
 

GREASEMONKEY

  • 2. •  •  •  JavaScript •  Chrome Opera •  HTML •  •  Autopager • 
  • 3. GREASEMONKEY •  Firefox •  •  •  CSS •  js (jQuery ) •  Chrome
  • 4. •  *****.user.js •  •  // ==UserScript== •  // @name hello_world •  // @namespace http://hoge.com/ •  // @description Greasemonkey •  // @include http://www.google.co.jp/* •  // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js •  // @version 1.0 •  // ==/UserScript== •  /* */ • 
  • 5. •  // Google •  var input = $("#lst-ib") •  .attr("value","Hello World(Greasemonkey)");// •  // input •  input.after( •  // •  input.clone().css({ •  "background": "#000",// •  "color": "#FFF",// •  }) •  );
  • 7. •  DOM •  Firebug •  •  GM_log() •  alert()
  • 9. // ==UserScript== // @name hello_world // @namespace http://hoge.com/ // @description Greasemonkey // @include http://www.google.co.jp/* // @require http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js // @version 1.0 // ==/UserScript== // Google var input = $("#lst-ib") .attr("value","Hello World(Greasemonkey)");// GM_log(" "); // input input.after( // input.clone().css({ "background": "#000",// “color”: “#FFF”,// }) ); $("#hplogo").css("background", "url(http://k.yimg.jp/images/top/sp/logo.gif)");