نرحب بك في هذا الموضوع الذي أشارك مع اضافة لجوجل كروم قمت بصناعتها لاختيار عنوان لجوجل كروم بشكل جيد
content.js
واكتب الكود التالي داخله :
setTimeout(myTimer, 2500)
}() function myTimer
;var x =document.getElementsByClassName("wM6W7d")
;var xa =document.getElementsByClassName("a4bIc")
; var cc= x[0].innerHTML
; var cc1= x[1].innerHTML
; var cc2= x[2].innerHTML
; var cc3= x[3].innerHTML
; var cc4= x[4].innerHTML
; var cc5= x[5].innerHTML
; var cc6= x[6].innerHTML
; var cc7= x[7].innerHTML
; var cc8= x[8].innerHTML
; var cc9= x[9].innerHTML
; var vv = cc.replace( /(<([^>]+)>)/ig, '')
; var vv1 = cc1.replace( /(<([^>]+)>)/ig, '')
; var vv2 = cc2.replace( /(<([^>]+)>)/ig, '')
; var vv3 = cc3.replace( /(<([^>]+)>)/ig, '')
; var vv4 = cc4.replace( /(<([^>]+)>)/ig, '')
; var vv5 = cc5.replace( /(<([^>]+)>)/ig, '')
; var vv6 = cc6.replace( /(<([^>]+)>)/ig, '')
; var vv7 = cc7.replace( /(<([^>]+)>)/ig, '')
; var vv8 = cc8.replace( /(<([^>]+)>)/ig, '')
; var vv9 = cc9.replace( /(<([^>]+)>)/ig, '')
; var cca= xa[0].innerHTML
; var vv10 = cca.replace( /(<([^>]+)>)/ig, '')
; var fr = cca.split("value=")
; var df = fr[1]
; var fo = df.split("aria-label")
; var zz = fo[0]
; ('"','')var vv0 = zz.replaceAll
;var tags = vv0+","+vv+","+vv1+","+vv2+","+vv3+","+vv4+","+vv5+","+vv6+","+vv7+","+vv8+","+vv9
; var laon = tags.replaceAll(vv0,"")
; (",","-")var laon1 = laon.replaceAll
;(" ","_")var htags = vv0.replaceAll
; var mylongtailkeyword =vv0+laon1+" \n "+"#"+htags
;var para = document.createElement("textarea")
; para.innerText = mylongtailkeyword
; "para.id="mutopic
; 'para.style.width = '550px
; 'para.style.height = '60px
; 'para.style.margin = '88px 119px 00px 28px
; 'para.style.backgroundColor = '#03a9f4
;'para.style.borderRadius = '6px
;document.getElementById("before-appbar").appendChild(para)
; var button1 = document.createElement("button")
;"نسخ العنوان الطويل " =button1.innerHTML
; 'button1.style.width = '250px
; 'button1.style.height = '37px
; 'button1.style.left = '1px
; 'button1.style.position= 'absolute
;'button1.style.backgroundColor = '#03a9f4
;' button1.style.borderRadius = '6px
;' button1.style.border = '1px solid #dfe1e5
;' button1.style.color = ' #fff
;' button1.style.fontSize = '14px
;' button1.style.margin = '85px 185px 00px 28px
; var body = document.getElementById("before-appbar")
; body.appendChild(button1)
} ()button1.addEventListener ("click", function
; var copyText = document.getElementById("mutopic")
; () copyText.select
copyText.setSelectionRange(0, 99999)
;document.execCommand("copy")
;({
; var para1 = document.createElement("textarea")
; para1.innerText = tags
;"para1.id="mutopic1
;'para1.style.width = '550px
;'para1.style.height = '80px
;' para1.style.borderRadius = '6px
;' para1.style.margin = '1px 119px 00px 28px
;'para1.style.right = '1px
;' para1.style.position= 'absolute
;' para1.style.backgroundColor = '#1A9505
;document.getElementById("before-appbar").appendChild(para1)
; var button2 = document.createElement("button")
;"نسخ الوسوم"= button2.innerHTML
;' button2.style.width = '250px
;' button2.style.height = '37px
;' button2.style.left = '1px
;' button2.style.position= 'absolute
;'button2.style.backgroundColor = '#000
;' button2.style.borderRadius = '6px
;' button2.style.border = '1px solid #dfe1e5
;' button2.style.color = ' #fff
;' button2.style.fontSize = '14px
;' button2.style.margin = '21px 185px 00px 28px
; var body1 = document.getElementById("before-appbar")
; body1.appendChild(button2)
} ()button2.addEventListener ("click", function
; var copyText = document.getElementById("mutopic1")
; ()copyText.select
; copyText.setSelectionRange(0, 99999)
document.execCommand("copy")
;({
{
تم انشأ ملف أخر باسم manifest.json
واكتب داخله الكود التالي :
}
, manifest_version": 2"
,"name": "google all keywords"
,"version": "0.1"
]:"content_scripts"
}
]:"matches"
"<all_urls>"
, [
js":["content.js"] "
{
[
{
نأتي الى التثبيت قم بالاتي :
1: قم بتفعيل نظام المطور
2 : قم برفع الملفات التي أنشأناها
شرح استخدام الاضافة من خلال هذا الفيديو