Advertisement
Guest User

Untitled

a guest
Nov 29th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. function addCuration (autorun) {
  2. chrome.storage.local.get({dontdisplay: false}, function (items) {
  3. dontdisplay = items.dontdisplay
  4. if (!dontdisplay) {
  5. var od = document.querySelector('#overlay_Div1')
  6. if(!od){
  7. console.log("added on ICON C on popup button")
  8. var g = document.createElement('div')
  9. g.setAttribute('id', 'overlay_Div1')
  10. document.body.appendChild(g)
  11. document.getElementById('overlay_Div1').innerHTML += window['htmlNewTabButton'](window.location.href)
  12. if (autorun) {
  13. addWidget()
  14. }
  15. window['less'].refreshStyles()
  16. window['$']('#curate_button_id').click(openWidget_popup)
  17. buttonAnimnation(window.location.href)
  18. }
  19. }
  20. })
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement