https://chat.openai.com/?model=gpt-4-browsing
You:
Please tell me about yourself, and your capabilities.
ChatGPT:
class ActivityTracker { | |
constructor(totalTime, checkTime, metrikaId, debug = false) { | |
this.events = [ | |
"touchmove", | |
"blur", | |
"focus", | |
"focusin", | |
"focusout", | |
"load", | |
"resize", |
/** | |
* Класс для менеджера событий (целей) | |
* @constructor | |
*/ | |
function EventManager() { | |
this.init(); | |
this.initEvents(); | |
} | |
/** |
<!-- Google Analytics --> | |
<script async>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-XXXXXX'); | |
<!--<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-XXXXXX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>--> | |
<!-- Yandex Metrica --> | |
<script async>(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym"); ym(XXXXXX, "init", {}); | |
<!--<noscript><img src="https://mc.yandex.ru/watch/XXXXXX" style="position:absolute; left:-9999px;" alt=""></noscript>--> |
<?php | |
add_filter( | |
'wp_schema_pro_schema_article', | |
/** | |
* Расширяет микроразметку BlogPosting для Яндекс.Метрики. | |
* | |
* @link https://metrika.yandex.ru/support/metrica/publishers/schema-org/json-ld.html#json-ld__identifier-desc | |
* | |
* @param array $schema Схема. | |
* @param array $data Данные. |
https://chat.openai.com/?model=gpt-4-browsing
You:
Please tell me about yourself, and your capabilities.
ChatGPT:
<?php | |
/** | |
* Plugin Name: Elementor Activation | |
* Description: Activates Elementor Pro - Not everybody have shell acces to run WP CLI or desire for eveybody to see license key. Manual activation is needed, and since Elementor wont add this, community will :) | |
* Plugin URI: https://github.com/elementor/elementor/issues/8667 | |
* Gist Plugin URI: https://gist.github.com/lupetalo/38e6d40b620b7da976c42c2d207c674a | |
* Version: 1.3 | |
*/ | |
add_filter('pre_http_request', function($request, $request_params, $url){ | |
if (strpos($url, 'my.elementor.com/api/v2/license/')!==false){ |
// Get the UTM parameters from the URL | |
var search = window.location.search; | |
var params = new URLSearchParams(search); | |
// Keep track of if an event has already been logged | |
var eventLogged = false; | |
// Loop through each UTM parameter | |
for (var [key, value] of params.entries()) { | |
// Check if the parameter is "utm_source", "utm_medium", "utm_campaign", "utm_term", or "utm_content" |
<?php | |
$req_url = "https://api.openat.com/v1/engines/audio-transcribe-801/transcriptions"; | |
$openai_key = getenv("OPENAI_API_KEY"); | |
$file_path = "test.mp3"; | |
$file = file_get_contents($file_path); | |
$form_fields = array( | |
'file' => array($file_path, $file, 'audio/mpeg') | |
); | |
<?php | |
add_filter( 'wpseo_schema_webpage', 'change_schema_ref', 11, 2 ); | |
function change_schema_ref( $piece ) { | |
$linkstring ='https://www.agespace.org'.$_SERVER['REQUEST_URI']; | |
$piece['@id']=$linkstring; |
var trackClickEvent = function () { | |
var eventCategory = this.getAttribute("data-event-category") || "unknown"; | |
var eventLabel = this.getAttribute("data-event-label") || ""; | |
gtag('event', eventCategory, { 'label' : eventLabel, 'debug_mode': true }); | |
}; | |
var elementsToTrack = document.getElementsByClassName("ga-event"); |