Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[ <HCExtension>
- @name Google/Youtube mode http/unsecure
- @author reges007
- @version 1
- @description manipulasi user agent browser untuk youtube dan google, harap dihapus extensi user agent lainnya jika memakai yang ini
- @exception ^https
- @rule youtube.com|www\.google\.
- @rule whatsmyuseragent.com
- @event RequestHeaderReceived/Request
- </HCExtension> ]]
- function Request()
- if re.find(hc.request_header, [[^User-Agent:.*\(Windows]]) then
- hc.request_header = re.replace(hc.request_header, [[^User-Agent: \K[^\r\n]+]], 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)')
- hc.monitor_string = 'windows'
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement