cletusc / Userscript--Twitch-Chat-Emotes

Adds a button to Twitch that allows you to "click-to-insert" an emote.
http://cletusc.github.io/Userscript--Twitch-Chat-Emotes/
MIT License
36 stars 20 forks source link

Script fails to run on Chrome v27 #10

Closed cletusc closed 11 years ago

cletusc commented 11 years ago

Using: TM v2.12.3124.188 Chrome v27.0.1453.47 beta-m

Produces: Unable to add emotes button for some reason, stopping. [PP: false / Logged in: false / Twitch Object: false / Chat Object: false / Chat Loaded: false / jQuery: false / userAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.47 Safari/537.36]

window.PP and the other objects return correctly through console.

cletusc commented 11 years ago

This will be in the same boat as #1 as Chrome v27 prevents Tampermonkey from accessing the page variables normally. I will need to inject the script into page context.

Workarounds for now:

  1. [EASY] Change back to Chrome Stable channel.
  2. [HARD] Use Tampermonkey Beta with a few extra changes. Note: this could be unsafe and I highly recommend you try option 1 first]
    • Disable your current Tampermonkey extension.
    • Install Tampermonkey Beta.
    • Go to Tampermonkey Beta settings.
    • Change "Config mode" to "Beginner".
    • Under the "Runtime" category, change "UnsafeWindow retrieval method" to "Unsafe".
cletusc commented 11 years ago

Fixed by 0101b57ededc2277bb36540fb48c1d466490ad5c