Grease Monkey Addon เทพ

Grease Monkey

GreaseMonkey Addon เทพ ไม่ใช่โพสเกินจริง ต้ัองลองใช้เองครับถึงจะได้รับรู้ถึงพลังของมัน

ติดตั้งกันก่อน

Step#1 ไปโหลด GreaseMonkey มาเสีบบปลั้กให้ firefox ก่อน

ที่นี่ https://addons.mozilla.org/en-US/firefox/addon/5687

Step#2 ติดตั้งให้เรียบร้อยก่อน

จะมี icon ลิงน้อยเพิ่มมาที่มุมขวาล่างของ Firefox คุณ สามารถคลิกซ้ายเพื่อเปิดปิด มันได้

สร้าง Script ใหม่>> New Use Script

แก้ไข >> Manage  User Script

ลอง Script แรกกันก่ิอน

ขอบคุณแรงบัดดลใจท่าน Raptor thaiseo จากกระทู้นี้ http://www.thaiseoboard.com/index.php/topic,98160.0.html

เคยมั้ยที่ท่าน Search Google แล้วอยากจะเก็บ Url ของผล search นั้นไว้ทั้งหมด เช่น หา List Dofollow comment Blog,Dofollow Forums สัก 100 ที่ นั่งเก็บทีละ Url นี่มันไ่ม่ใช่งานเล็กแน่

Grass Monkey ทำได้

Step#1 > New User Script

ที่ด้านมุมขขวาล่าง จะมีป๊อปอัพเด้งขึ้นมาแบบนี้่

Step#2 > กรอกข้อมูลดังนี้

> Name ให้ใส่ว่า   Get_google_url (หรืออะไรก็ได้ไม่มีผลเอาให้จำได้ละกัน)

> Includes (One per line) ให้ใส่ว่า http://www.google.*/*

> Description ใส่อะไรก็ได้ให้จำได้ละกัน

Step#3 กด Ok

มันจะให้เราเลือก text editor ครับถ้าเราใช้เป็นครั้งแรก ก็ไปเลือก text editor ตัวโปรดของคุณเลยตามที่ที่คุณเก็บไว้ C:\Program Files\……..

Step#4 ก็อปปี้ code นี้ทับไปเลยครับ

// ==UserScript==
// @name           google_url
// @namespace      c:\
// @description    get google url
// @include        google.com
// ==/UserScript==

var include_jq = document.createElement('script');
include_jq.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js';
include_jq.type = 'text/javascript';
document.getElementsByTagName('head')[0].appendChild(include_jq);
function include_jq_wait() {
   if(typeof unsafeWindow.jQuery == 'undefined') { window.setTimeout(include_jq_wait, 100); }
   else { $ = unsafeWindow.jQuery; main(); }
}
include_jq_wait();

// --- Coding Here --- //
function CreateBox(){
   $("<div id='jqprocess'>TSB_GetUrl</div>").prependTo(document.body);
   $("div#jqprocess").css({
      "color" : "blue",
      "border" : "outset blue 2px",
      "width" : "100px",
      "text-align" : "center",
      "cursor" : "pointer",
      "background-color" : "white"
   });
   $("div#jqprocess").hover(function(even){
      $("div#jqprocess").css("background-color","gray");
   }, function(even){
      $("div#jqprocess").css("background-color","white");
   });
   $("div#jqprocess").click(function(even){
      htmlPopup();
   });
}

function get_google(){
   doc = document;
   output = "";
   str_ret = "google null!";
   num = 0;
   $(doc).find("h3").each(function(i) {
      $(this).find("a").each(function(i) {
         str = $(this).attr("href");
         if(str!=null){
            if(str.substring("http://".length, 0)=="http://") {
               num++;
               output += str + "<br />\n";
            }
         }
      });
   });
//   str_ret = "google : [" + num + "]<br />\n" + output;
   str_ret = output;
   return str_ret;
}

function htmlPopup(){
   var data = "";
   if (window.location.href.indexOf("www.google")!=-1) data = get_google();
   var html = "";
   var generator = window.open('', 'name', 'location=1,status=1,scrollbars=1,height=auto,width=800');
   html = "<html><head><title>Popup</title></head><body><div>" + data + "</div></body></html>";
   html = data;
   generator.document.write(html);
}

function main(){
   if (window.location.href.indexOf("www.google")!=-1) CreateBox();
}

เสร็จแล้ว Save แล้วปิด Text editer ได้เลย

การเรียกใช้งาน

  1. เข้าไปที่ google.com แล้วจะเห็น Icon TSB_Url ที่มุมบนซ้าย
  2. search ซะ แล้วก็คลิก ที่ Icon TSB_Ur
  3. ปรากฎผล Search ที่หน้าต่างใหม่ เอาไปต้มแกงทำยำได้ตามสะดวก

แถมใช้คำพวกนี้ search สีแดงไม่ต้องใส่ไปนา keyphrase=Keywords

inurl:forum keyphrase
intitle:forum keyphrase

Vbulletin – inurl:showthread.php keyphrase
Invision – inurl:index.php?showtopic= keyphrase
PHPBB – inurl:viewtopic.php keyphrase
Simple Machines – inurl:index.php?board= keyphrase
Phorum – inurl:list.php? keyphrase

YABB – inurl:YaBB.pl? keyphrase

MyBB – inurl:forum- keyphrase

“php link directory” inurl:”submit.php” -”reciprocal”
inurl:”wp-signup.php”

อันนี้ไว้หาคอมเมนท์ Blog  site:xxx.com  ”Post a new comment”

เท่านี้ก็จะได้ list ส่วนตัวไม่ีต้องไปใช้ซ้ำใคร ^^

หา Script อื่นเพิ่มได้ที่นี่>> http://userscripts.org

อยากขาย Amazon ดีดี ใช้ Hostgator สิ uptime 99.99%
เช่า Hostgator ไม่เป็นดูทึ่นี่้>> วิธีเช่า Hostgator
จดโดเมน>> Netfirms << แค่ $3.99 ถูกที่สุดแล้ว ใช้คูปอง

DOLLARDOMAIN


ใส่เมล์ทีนี่เพื่อรับเรื่องใหม่ก่อนใคร:

คุณอาจหาเรื่องนี้อยู่

3 Responses to “ Grease Monkey Addon เทพ ”

  1. [...] ใช้ร่วมกับ Grass Monkey ยิ่งง่ายเข้าไปใหญ่ เก็บทีเดียว 100 เว็ป [...]

  2. ดูจากฟีเจอร์ต่างๆที่บอกมานี่ ถือได้ว่า Grass Monkey เป็น Addon ของ Firefox ที่น่าสนใจจริงๆครับ มีประโยชน์มากๆสำหรับ นักทำ SEO เลยทีเดียว ขอบคุณมากๆสำหรับทิปเด็ดๆครับ

  3. ดูจากฟีเจอร์ต่างๆที่บอกมานี่ ถือได้ว่า Grass Monkey เป็น Addon ของ Firefox ที่น่าสนใจจริงๆครับ มีประโยชน์มากๆสำหรับ นักทำ SEO เลยทีเดียว ขอบคุณมากๆสำหรับทิปเด็ดๆครับ

คุยกับผมบ้างก็ได้

You can use these XHTML tags: <a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <code> <em> <strong>