Set User-agent

Schimba imaginea cu nr de telefon in publi24 cu nr de telefon

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name           Set User-agent
// @namespace      http://www.w3.org/1999/xhtml
// @description Schimba imaginea cu nr de telefon in publi24 cu nr de telefon
// @include        http://www.publi24.ro/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
// @version 0.0.1.20170309170437
// ==/UserScript==
console.log("running");
GM_xmlhttpRequest({
  method: 'GET',
  url: window.location.href,
  headers: {
    'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A5376e Safari/8536.25',
    'Accept': '*/*',
  },
  onload:function(data){ 
      var val= $("input[name='PhoneNoiseNew']",data.responseText).val();
      console.log("loaded",val);

      if (val){
        var phone = atob(val);
        document.getElementById("message-tel-buttons").innerHTML="<h3><a href='tel:"+phone+"'>"+phone+"</a></h3><h3><a href='https://www.google.ro/search?q="+phone+"' target='_blank'>Google</a></h3><h3><a href='http://nimfomane.com/forum/index.php?app=core&module=search&do=search&fromMainBar=1&search_term="+phone+"' target='_blank'>nimfomane</a></h3>";
      }
  }
});